From b7866113f018ccca99b90601c346cc0f94d4035a Mon Sep 17 00:00:00 2001 From: TheThing Date: Thu, 28 Sep 2023 09:49:56 +0000 Subject: [PATCH] Fix tests, remove some console output --- test/cli.test.mjs | 1 - test/watch.test.mjs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test/cli.test.mjs b/test/cli.test.mjs index 4b3b8d6..17edaba 100644 --- a/test/cli.test.mjs +++ b/test/cli.test.mjs @@ -294,7 +294,6 @@ t.describe('CLI', function() { assert.ok(cli.watcher) 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('folder/filename.js')) diff --git a/test/watch.test.mjs b/test/watch.test.mjs index 2983ee2..7ec0070 100644 --- a/test/watch.test.mjs +++ b/test/watch.test.mjs @@ -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') watcher = new Watcher(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 dir2 = builder.getPath('home/b') watcher = new Watcher([dir1, dir2])