mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-12-11 14:57:05 +00:00
5886db81e9
* Add Copy To functionality for notebooks * Fix formatting * Fix linting errors * Fixes * Fix build failure * Rebase and address feedback * Increase test coverage
12 lines
444 B
TypeScript
12 lines
444 B
TypeScript
import * as Base64Utils from "./Base64Utils";
|
|
|
|
describe("Base64Utils", () => {
|
|
describe("utf8ToB64", () => {
|
|
it("should convert utf8 to base64", () => {
|
|
expect(Base64Utils.utf8ToB64("abcd")).toEqual(btoa("abcd"));
|
|
expect(Base64Utils.utf8ToB64("小飼弾")).toEqual("5bCP6aO85by+");
|
|
expect(Base64Utils.utf8ToB64("à mon hôpital préféré")).toEqual("w6AgbW9uIGjDtHBpdGFsIHByw6lmw6lyw6k=");
|
|
});
|
|
});
|
|
});
|