|
15 | 15 | * limitations under the License.
|
16 | 16 | */
|
17 | 17 |
|
18 |
| -import { expect } from "chai"; |
| 18 | +import { expect } from 'chai'; |
19 | 19 |
|
20 |
| -import { parseRepoInfo } from "../src/core/util/libs/parser"; |
| 20 | +import { parseRepoInfo } from '../src/core/util/libs/parser'; |
21 | 21 |
|
22 | 22 | 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 | + }); |
31 | 34 | });
|
0 commit comments