Skip to content

Commit

Permalink
standard
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Aug 29, 2018
1 parent 9efff68 commit 26c6b72
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var test = require('tape')
var deglob = require('../')

var playground = path.join(__dirname, 'playground')
var opts = {cwd: playground, gitIgnoreFile: 'custom-gitignore'}
var opts = { cwd: playground, gitIgnoreFile: 'custom-gitignore' }

test('all of the things', function (t) {
globbies.forEach(function (obj) {
Expand Down Expand Up @@ -32,15 +32,15 @@ var globbies = [
{
name: '*.txt useGitIgnore: false, usePackageJson: default',
globs: '*.txt',
opts: Object.assign({}, opts, {useGitIgnore: false}),
opts: Object.assign({}, opts, { useGitIgnore: false }),
expectedFiles: [
'ignored-by-git.txt',
'blah.txt']
},
{
name: '*.txt useGitIgnore: false, usePackageJson: false',
globs: '*.txt',
opts: Object.assign({}, opts, {useGitIgnore: false, usePackageJson: false}),
opts: Object.assign({}, opts, { useGitIgnore: false, usePackageJson: false }),
expectedFiles: [
'ignored-by-git.txt',
'ignored-by-package-json.txt',
Expand All @@ -49,7 +49,7 @@ var globbies = [
{
name: '*.txt and *.json useGitIgnore: default, usePackageJson: false',
globs: ['*.txt', '*.json'],
opts: Object.assign({}, opts, {usePackageJson: false}),
opts: Object.assign({}, opts, { usePackageJson: false }),
expectedFiles: [
'ignored-by-package-json.txt',
'blah.txt',
Expand All @@ -58,7 +58,7 @@ var globbies = [
{
name: '*.txt and *.json useGitIgnore: default, usePackageJson: default, configKey: custom-ignore-blah',
globs: ['*.txt'],
opts: Object.assign({}, opts, {configKey: 'custom-ignore-blah'}),
opts: Object.assign({}, opts, { configKey: 'custom-ignore-blah' }),
expectedFiles: ['ignored-by-package-json.txt']
}
]

0 comments on commit 26c6b72

Please sign in to comment.