Skip to content

Commit 5aa90e2

Browse files
committed
Fix tests.
1 parent ec7fbc2 commit 5aa90e2

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

packages/util/test/defaults.test.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('getDefaultEmulatorHost', () => {
2828

2929
context('with no config', () => {
3030
it('returns undefined', () => {
31-
expect(getDefaultEmulatorHost('firestore')).to.equal(undefined);
31+
expect(getDefaultEmulatorHost('firestore')).to.be.undefined;
3232
});
3333
});
3434

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

4545
it('returns undefined', () => {
46-
expect(getDefaultEmulatorHost('firestore')).to.equal(undefined);
46+
expect(getDefaultEmulatorHost('firestore')).to.be.undefined;
4747
});
4848
});
4949

@@ -83,9 +83,7 @@ describe('getDefaultEmulatorHostnameAndPort', () => {
8383

8484
context('with no config', () => {
8585
it('returns undefined', () => {
86-
expect(getDefaultEmulatorHostnameAndPort('firestore')).to.equal(
87-
undefined
88-
);
86+
expect(getDefaultEmulatorHostnameAndPort('firestore')).to.be.undefined;
8987
});
9088
});
9189

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

102100
it('returns undefined', () => {
103-
expect(getDefaultEmulatorHostnameAndPort('firestore')).to.equal(
104-
undefined
105-
);
101+
expect(getDefaultEmulatorHostnameAndPort('firestore')).to.be.undefined;
106102
});
107103
});
108104

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

118114
it('returns hostname and port splitted', () => {
119-
expect(getDefaultEmulatorHostnameAndPort('firestore')).to.equal([
115+
expect(getDefaultEmulatorHostnameAndPort('firestore')).to.eql([
120116
'127.0.0.1',
121117
8080
122118
]);
@@ -133,7 +129,7 @@ describe('getDefaultEmulatorHostnameAndPort', () => {
133129
});
134130

135131
it('returns unquoted hostname and port splitted', () => {
136-
expect(getDefaultEmulatorHostnameAndPort('firestore')).to.equal([
132+
expect(getDefaultEmulatorHostnameAndPort('firestore')).to.eql([
137133
'::1',
138134
8080
139135
]);

0 commit comments

Comments
 (0)