mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
added tests
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import * as base64 from 'base-64';
|
||||
import * as utf8 from 'utf8';
|
||||
|
||||
let text = 'foo © bar 𝌆 baz';
|
||||
let bytes = utf8.encode(text);
|
||||
let encoded = base64.encode(bytes);
|
||||
// → 'Zm9vIMKpIGJhciDwnYyGIGJheg=='
|
||||
|
||||
encoded = 'Zm9vIMKpIGJhciDwnYyGIGJheg==';
|
||||
bytes = base64.decode(encoded);
|
||||
text = utf8.decode(bytes);
|
||||
@@ -13,6 +13,7 @@
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts"
|
||||
"index.d.ts",
|
||||
"base-64-tests.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user