chore: lint + bump deps

This commit is contained in:
liyasthomas
2021-11-04 18:23:50 +05:30
parent ad76d100ee
commit 9e74a8c2e7
32 changed files with 1248 additions and 1265 deletions

View File

@@ -15,16 +15,15 @@ afterAll(() => {
})
describe("marshalObjectToVM", () => {
test("successfully marshals simple object into the vm", () => {
const testObj = {
a: 1
a: 1,
}
const objVMHandle: QuickJS.QuickJSHandle | null = pipe(
marshalObjectToVM(vm, testObj),
match(
(e) => null,
() => null,
(result) => result
)
)
@@ -38,7 +37,7 @@ describe("marshalObjectToVM", () => {
test("fails marshalling cyclic object into vm", () => {
const testObj = {
a: 1,
b: null as any
b: null as any,
}
testObj.b = testObj
@@ -46,12 +45,11 @@ describe("marshalObjectToVM", () => {
const objVMHandle: QuickJS.QuickJSHandle | null = pipe(
marshalObjectToVM(vm, testObj),
match(
(e) => null,
() => null,
(result) => result
)
)
expect(objVMHandle).toBeNull()
})
})
})