diff --git a/package.json b/package.json index 9a6b569..ae9bab5 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "minimatch": "^3.0.2", "minimist": "^1.1.1", "walker": "~1.0.5", - "watch": "~0.10.0" + "watch": "~0.18.0" }, "devDependencies": { "eslint": "^3.19.0", diff --git a/test/utils-test.js b/test/utils-test.js index d330a1e..bb485e0 100644 --- a/test/utils-test.js +++ b/test/utils-test.js @@ -86,7 +86,7 @@ describe.only('RecrawlWarning', function() { it('new message', function() { assert.equal( RecrawlWarning.isRecrawlWarningDupe( - 'Recrawled this watch 1 times, most recently because:\n\/foo\/bar\/baz:' + 'Recrawled this watch 1 times, most recently because:\n/foo/bar/baz:' ), false ); @@ -95,13 +95,13 @@ describe.only('RecrawlWarning', function() { it('same message twice', function() { assert.equal( RecrawlWarning.isRecrawlWarningDupe( - 'Recrawled this watch 2 times, most recently because:\n\/foo\/bar\/baz:' + 'Recrawled this watch 2 times, most recently because:\n/foo/bar/baz:' ), false ); assert.equal( RecrawlWarning.isRecrawlWarningDupe( - 'Recrawled this watch 2 times, most recently because:\n\/foo\/bar\/baz:' + 'Recrawled this watch 2 times, most recently because:\n/foo/bar/baz:' ), true ); @@ -110,13 +110,13 @@ describe.only('RecrawlWarning', function() { it('same count, but different root twice', function() { assert.equal( RecrawlWarning.isRecrawlWarningDupe( - 'Recrawled this watch 2 times, most recently because:\n\/foo\/bar\/baz:' + 'Recrawled this watch 2 times, most recently because:\n/foo/bar/baz:' ), false ); assert.equal( RecrawlWarning.isRecrawlWarningDupe( - 'Recrawled this watch 2 times, most recently because:\n\/baz\/bar\/baz:' + 'Recrawled this watch 2 times, most recently because:\n/baz/bar/baz:' ), false ); @@ -125,19 +125,19 @@ describe.only('RecrawlWarning', function() { it('incrementing count, but fixed root', function() { assert.equal( RecrawlWarning.isRecrawlWarningDupe( - 'Recrawled this watch 2 times, most recently because:\n\/foo\/bar\/baz:' + 'Recrawled this watch 2 times, most recently because:\n/foo/bar/baz:' ), false ); assert.equal( RecrawlWarning.isRecrawlWarningDupe( - 'Recrawled this watch 3 times, most recently because:\n\/foo\/bar\/baz:' + 'Recrawled this watch 3 times, most recently because:\n/foo/bar/baz:' ), false ); assert.equal( RecrawlWarning.isRecrawlWarningDupe( - 'Recrawled this watch 4 times, most recently because:\n\/foo\/bar\/baz:' + 'Recrawled this watch 4 times, most recently because:\n/foo/bar/baz:' ), false ); @@ -146,19 +146,19 @@ describe.only('RecrawlWarning', function() { it('decrementing count, but fixed root', function() { assert.equal( RecrawlWarning.isRecrawlWarningDupe( - 'Recrawled this watch 4 times, most recently because:\n\/foo\/bar\/baz:' + 'Recrawled this watch 4 times, most recently because:\n/foo/bar/baz:' ), false ); assert.equal( RecrawlWarning.isRecrawlWarningDupe( - 'Recrawled this watch 3 times, most recently because:\n\/foo\/bar\/baz:' + 'Recrawled this watch 3 times, most recently because:\n/foo/bar/baz:' ), true ); assert.equal( RecrawlWarning.isRecrawlWarningDupe( - 'Recrawled this watch 2 times, most recently because:\n\/foo\/bar\/baz:' + 'Recrawled this watch 2 times, most recently because:\n/foo/bar/baz:' ), true );