tjson-js
Version:
Tagged JSON (TJSON): a JSON-based microformat with rich type annotations
11 lines (9 loc) • 315 B
text/typescript
import { suite, test } from "mocha-typescript";
import { expect } from "chai";
import { StringType } from "../../src/datatype/string";
@suite class StringTypeTest {
@test "parses strings"() {
let exampleString = "Hello, world!";
expect((new StringType).decode(exampleString)).to.eq(exampleString);
}
}