Skip to content

Commit ccfc5d8

Browse files
committed
fix CI warnings
1 parent 6d05f11 commit ccfc5d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

__tests__/utils.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ describe('urlsafe_b64encode', () => {
66
expect(urlsafe_b64encode('hello+foo/bar=====')).toBe('aGVsbG8rZm9vL2Jhcj09PT09');
77
});
88
it('multiple + characters should be encoded correctly -', () => {
9-
let inp ='const is_greater_than_1 = 45 >= 5 ? true : false\nconst is_greater_than_2 = 6435 >= 5 ? true : false';
10-
let expected = 'Y29uc3QgaXNfZ3JlYXRlcl90aGFuXzEgPSA0NSA-PSA1ID8gdHJ1ZSA6IGZhbHNlCmNvbnN0IGlzX2dyZWF0ZXJfdGhhbl8yID0gNjQzNSA-PSA1ID8gdHJ1ZSA6IGZhbHNl'
9+
const inp ='const is_greater_than_1 = 45 >= 5 ? true : false\nconst is_greater_than_2 = 6435 >= 5 ? true : false';
10+
const expected = 'Y29uc3QgaXNfZ3JlYXRlcl90aGFuXzEgPSA0NSA-PSA1ID8gdHJ1ZSA6IGZhbHNlCmNvbnN0IGlzX2dyZWF0ZXJfdGhhbl8yID0gNjQzNSA-PSA1ID8gdHJ1ZSA6IGZhbHNl'
1111
expect(urlsafe_b64encode(inp)).toBe(expected);
1212
});
1313
it('multiple / characters should be encoded correctly as _', () => {
14-
let inp ='const has_env1 = window.env1 ? true : false;\nconst has_env2 = window.env2 ? true : false;';
15-
let expected = 'Y29uc3QgaGFzX2VudjEgPSB3aW5kb3cuZW52MSA_IHRydWUgOiBmYWxzZTsKY29uc3QgaGFzX2VudjIgPSB3aW5kb3cuZW52MiA_IHRydWUgOiBmYWxzZTs'
14+
const inp ='const has_env1 = window.env1 ? true : false;\nconst has_env2 = window.env2 ? true : false;';
15+
const expected = 'Y29uc3QgaGFzX2VudjEgPSB3aW5kb3cuZW52MSA_IHRydWUgOiBmYWxzZTsKY29uc3QgaGFzX2VudjIgPSB3aW5kb3cuZW52MiA_IHRydWUgOiBmYWxzZTs'
1616
expect(urlsafe_b64encode(inp)).toBe(expected);
1717
});
1818
});

0 commit comments

Comments
 (0)