Fix tests, remove some console output
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded

This commit is contained in:
TheThing 2023-09-28 09:49:56 +00:00
parent 5c9ead16b6
commit b7866113f0
2 changed files with 2 additions and 3 deletions

View file

@ -294,7 +294,6 @@ t.describe('CLI', function() {
assert.ok(cli.watcher) assert.ok(cli.watcher)
assert.strictEqual(typeof cli.watcher.options.filter.test, 'function') assert.strictEqual(typeof cli.watcher.options.filter.test, 'function')
console.log(cli.watcher.options.filter)
assert.ok(cli.watcher.options.filter.test('filename.js')) assert.ok(cli.watcher.options.filter.test('filename.js'))
assert.ok(cli.watcher.options.filter.test('folder/filename.js')) assert.ok(cli.watcher.options.filter.test('folder/filename.js'))

View file

@ -457,13 +457,13 @@ t.describe('watcher', function() {
}) })
}) })
t.describe('should store original paths in object', function() { t.test('should store original paths in object', function() {
var dir = builder.getPath('home') var dir = builder.getPath('home')
watcher = new Watcher(dir) watcher = new Watcher(dir)
assert.deepStrictEqual(watcher.originalPaths, [dir]) assert.deepStrictEqual(watcher.originalPaths, [dir])
}) })
t.describe('should store all original paths in object', function() { t.test('should store all original paths in object', function() {
var dir1 = builder.getPath('home/a') var dir1 = builder.getPath('home/a')
var dir2 = builder.getPath('home/b') var dir2 = builder.getPath('home/b')
watcher = new Watcher([dir1, dir2]) watcher = new Watcher([dir1, dir2])