fix(core): update

This commit is contained in:
2019-10-10 18:03:04 +02:00
parent 71fd0e614c
commit e773644256
2 changed files with 12 additions and 1 deletions

View File

@ -5,4 +5,10 @@ tap.test('should state valuid utf8', async () => {
expect(smartstring.type.isUtf8('hithere')).to.be.true;
});
tap.test('should state wether base64 string is valid', async () => {
const base64String = smartstring.base64.encode('hi there');
expect(smartstring.type.isBase64(base64String)).to.be.true;
expect(smartstring.type.isBase64('hi there')).to.be.false;
});
tap.start();