diff --git a/test/index_test.js b/test/index_test.js index fc6e35a..3ae8f1e 100644 --- a/test/index_test.js +++ b/test/index_test.js @@ -84,7 +84,9 @@ describe('WatchDetector', function() { expect(option.watchmanInfo).to.have.property('canNestRoots'); expect(option.watchmanInfo).to.have.property('enabled', true); expect(ui.output).not.to.match(/fell back to: "node"/); - expect(ui.output).not.to.match(/Visit https:\/\/ember-cli.com\/user-guide\/#watchman/); + expect(ui.output).not.to.match( + /Visit https:\/\/cli.emberjs.com\/release\/basic-use\/#whyiswatchmanneeded/ + ); }); describe('watchman does not work', function() { @@ -105,7 +107,9 @@ describe('WatchDetector', function() { expect(option.watchmanInfo).to.have.property('version'); expect(option.watchmanInfo).to.have.property('canNestRoots'); expect(ui.output).to.match(/fell back to: "node"/); - expect(ui.output).to.match(/Visit https:\/\/ember-cli.com\/user-guide\/#watchman/); + expect(ui.output).to.match( + /Visit https:\/\/cli.emberjs.com\/release\/basic-use\/#whyiswatchmanneeded/ + ); }); it('falls back to polling if node does not work', function() { @@ -119,7 +123,9 @@ describe('WatchDetector', function() { expect(option.watchmanInfo).to.have.property('version'); expect(option.watchmanInfo).to.have.property('canNestRoots'); expect(ui.output).to.match(/fell back to: "polling"/); - expect(ui.output).to.match(/Visit https:\/\/ember-cli.com\/user-guide\/#watchman/); + expect(ui.output).to.match( + /Visit https:\/\/cli.emberjs.com\/release\/basic-use\/#whyiswatchmanneeded/ + ); }); }); }); @@ -180,7 +186,9 @@ describe('WatchDetector', function() { let preference = subject.checkWatchman(); expect(preference).to.have.property('watcher', 'watchman'); expect(ui.output).to.not.match(/falling back to NodeWatcher/); - expect(ui.output).to.not.match(/ember-cli\.com\/user-guide\/#watchman/); + expect(ui.output).to.not.match( + /Visit https:\/\/cli.emberjs.com\/release\/basic-use\/#whyiswatchmanneeded/ + ); expect(ui.output).to.not.match(/Looks like you have a different program called watchman/); expect(ui.output).to.not.match(/Invalid watchman found/); }); @@ -195,7 +203,9 @@ describe('WatchDetector', function() { let preference = subject.checkWatchman(); expect(preference).to.have.property('watcher', 'node'); - expect(ui.output).to.not.match(/ember-cli\.com\/user-guide\/#watchman/); + expect(ui.output).to.not.match( + /Visit https:\/\/cli.emberjs.com\/release\/basic-use\/#whyiswatchmanneeded/ + ); }); iff("the `watchman version` doesn't parse", function() { @@ -206,7 +216,9 @@ describe('WatchDetector', function() { let preference = subject.checkWatchman(); expect(preference).to.have.property('watcher', 'node'); expect(ui.output).to.match(/Looks like you have a different program called watchman/); - expect(ui.output).to.match(/ember-cli\.com\/user-guide\/#watchman/); + expect(ui.output).to.match( + /Visit https:\/\/cli.emberjs.com\/release\/basic-use\/#whyiswatchmanneeded/ + ); }); }); });