aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/basic.spec.d.ts0
-rw-r--r--tests/basic.spec.ts6
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/basic.spec.d.ts b/tests/basic.spec.d.ts
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/basic.spec.d.ts
diff --git a/tests/basic.spec.ts b/tests/basic.spec.ts
index ed1a8c7..26a2edb 100644
--- a/tests/basic.spec.ts
+++ b/tests/basic.spec.ts
@@ -1,8 +1,10 @@
-import { x } from "../src";
+import {right} from 'fp-ts/Either'
+import { many0, digit, integer, whitespace } from '../src'
describe('Foobar', () => {
it ('should do shit', () => {
- expect(x).toBe(200)
+ expect(integer('12901')).toEqual(right([12901, '']))
+ expect(integer('12901asas')).toEqual(right([12901, 'asas']))
})
})