Skip to content

Commit 78c9ba2

Browse files
committed
Updated formatting
1 parent b90fec2 commit 78c9ba2

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

packages/database/test/parser.test.ts

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,20 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { expect } from "chai";
18+
import { expect } from 'chai';
1919

20-
import { parseRepoInfo } from "../src/core/util/libs/parser";
20+
import { parseRepoInfo } from '../src/core/util/libs/parser';
2121

2222
describe('parser', () => {
23-
it('should set websocketUrl correctly based on the protocol', () => {
24-
const httpsRepoInfo = parseRepoInfo('https://test-ns.firebaseio.com', false);
25-
expect(httpsRepoInfo.repoInfo.webSocketOnly).to.equal(false);
26-
const wssRepoInfo = parseRepoInfo('wss://test-ns.firebaseio.com', false);
27-
expect(wssRepoInfo.repoInfo.webSocketOnly).to.equal(true);
28-
const wsRepoInfo = parseRepoInfo('ws://test-ns.firebaseio.com', false);
29-
expect(wsRepoInfo.repoInfo.webSocketOnly).to.equal(true);
30-
});
23+
it('should set websocketUrl correctly based on the protocol', () => {
24+
const httpsRepoInfo = parseRepoInfo(
25+
'https://test-ns.firebaseio.com',
26+
false
27+
);
28+
expect(httpsRepoInfo.repoInfo.webSocketOnly).to.equal(false);
29+
const wssRepoInfo = parseRepoInfo('wss://test-ns.firebaseio.com', false);
30+
expect(wssRepoInfo.repoInfo.webSocketOnly).to.equal(true);
31+
const wsRepoInfo = parseRepoInfo('ws://test-ns.firebaseio.com', false);
32+
expect(wsRepoInfo.repoInfo.webSocketOnly).to.equal(true);
33+
});
3134
});

0 commit comments

Comments
 (0)