Skip to content

Commit

Permalink
Merge pull request #10020 from bertdeblock/fix-typos-in-serve-command…
Browse files Browse the repository at this point in the history
…-test

[INTERNAL] Fix typos in `serve` command test
  • Loading branch information
bertdeblock committed Sep 18, 2022
2 parents 70f921b + bb752c4 commit f57b7ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/commands/serve-test.js
Expand Up @@ -105,23 +105,23 @@ describe('serve command', function () {
});
});

it('has correct liveLoadPort', function () {
it('has correct liveReloadPort', function () {
return command.validateAndRun(['--port', '0', '--live-reload-port', '4001']).then(function () {
let captor = td.matchers.captor();
td.verify(tasks.Serve.prototype.run(captor.capture()), { times: 1 });
expect(captor.value.liveReloadPort).to.be.gte(4001, 'has correct liveReload port');
});
});

it('has correct liveReloadLoadHost', function () {
it('has correct liveReloadHost', function () {
return command.validateAndRun(['--port', '0', '--live-reload-host', '127.0.0.1']).then(function () {
let captor = td.matchers.captor();
td.verify(tasks.Serve.prototype.run(captor.capture()), { times: 1 });
expect(captor.value.liveReloadHost).to.equal('127.0.0.1', 'has correct liveReload host');
});
});

it('has correct liveLoadBaseUrl', function () {
it('has correct liveReloadBaseUrl', function () {
return command
.validateAndRun(['--port', '0', '--live-reload-base-url', 'http://127.0.0.1:4200/'])
.then(function () {
Expand Down

0 comments on commit f57b7ea

Please sign in to comment.