Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuchenshi committed Oct 10, 2022
1 parent ec7fbc2 commit 5aa90e2
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions packages/util/test/defaults.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('getDefaultEmulatorHost', () => {

context('with no config', () => {
it('returns undefined', () => {
expect(getDefaultEmulatorHost('firestore')).to.equal(undefined);
expect(getDefaultEmulatorHost('firestore')).to.be.undefined;
});
});

Expand All @@ -43,7 +43,7 @@ describe('getDefaultEmulatorHost', () => {
});

it('returns undefined', () => {
expect(getDefaultEmulatorHost('firestore')).to.equal(undefined);
expect(getDefaultEmulatorHost('firestore')).to.be.undefined;
});
});

Expand Down Expand Up @@ -83,9 +83,7 @@ describe('getDefaultEmulatorHostnameAndPort', () => {

context('with no config', () => {
it('returns undefined', () => {
expect(getDefaultEmulatorHostnameAndPort('firestore')).to.equal(
undefined
);
expect(getDefaultEmulatorHostnameAndPort('firestore')).to.be.undefined;
});
});

Expand All @@ -100,9 +98,7 @@ describe('getDefaultEmulatorHostnameAndPort', () => {
});

it('returns undefined', () => {
expect(getDefaultEmulatorHostnameAndPort('firestore')).to.equal(
undefined
);
expect(getDefaultEmulatorHostnameAndPort('firestore')).to.be.undefined;
});
});

Expand All @@ -116,7 +112,7 @@ describe('getDefaultEmulatorHostnameAndPort', () => {
});

it('returns hostname and port splitted', () => {
expect(getDefaultEmulatorHostnameAndPort('firestore')).to.equal([
expect(getDefaultEmulatorHostnameAndPort('firestore')).to.eql([
'127.0.0.1',
8080
]);
Expand All @@ -133,7 +129,7 @@ describe('getDefaultEmulatorHostnameAndPort', () => {
});

it('returns unquoted hostname and port splitted', () => {
expect(getDefaultEmulatorHostnameAndPort('firestore')).to.equal([
expect(getDefaultEmulatorHostnameAndPort('firestore')).to.eql([
'::1',
8080
]);
Expand Down

0 comments on commit 5aa90e2

Please sign in to comment.