1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00
squid-js/test/ocean/OceanBase.test.ts

31 lines
587 B
TypeScript
Raw Normal View History

2018-10-16 14:56:18 +02:00
import * as assert from "assert"
import OceanBase from "./OceanBaseMock"
describe("OceanBase", () => {
describe("#getId()", () => {
it("should get the id", async () => {
const id = "test"
const oceanBase = new OceanBase(id)
assert(oceanBase.getId() === id)
})
})
describe("#setId()", () => {
it("should get the id", async () => {
const id = "test"
const oceanBase = new OceanBase()
oceanBase.setId(id)
assert(oceanBase.getId() === id)
})
})
})