Remove from* variants, move fromString to stringTo (#233)

* Remove from* variants, move fromString to stringTo

* Bump
This commit is contained in:
Jaco Greeff
2018-10-18 10:30:14 +02:00
committed by GitHub
parent 35579c4d70
commit 57eddba598
56 changed files with 69 additions and 378 deletions
+2 -2
View File
@@ -20,8 +20,8 @@ describe('u8aToString', () => {
it('decodes the buffer correctly', () => {
expect(
u8aToString(
new Uint8Array([21, 23, 45, 67])
new Uint8Array([208, 159, 209, 128, 208, 184, 208, 178, 208, 181, 209, 130, 44, 32, 208, 188, 208, 184, 209, 128, 33])
)
).toEqual('21,23,45,67');
).toEqual('Привет, мир!');
});
});