Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INTERNAL] Fix typos in serve command test #10020

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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