mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
31 lines
602 B
TypeScript
31 lines
602 B
TypeScript
import {assert} from "chai"
|
|
import OceanBaseMock from "../mocks/OceanBase.Mock"
|
|
|
|
describe("OceanBase", () => {
|
|
|
|
describe("#getId()", () => {
|
|
|
|
it("should get the id", async () => {
|
|
|
|
const id = "test"
|
|
const oceanBase = new OceanBaseMock(id)
|
|
|
|
assert(oceanBase.getId() === id)
|
|
})
|
|
|
|
})
|
|
|
|
describe("#setId()", () => {
|
|
|
|
it("should get the id", async () => {
|
|
|
|
const id = "test"
|
|
const oceanBase = new OceanBaseMock()
|
|
oceanBase.setId(id)
|
|
|
|
assert(oceanBase.getId() === id)
|
|
})
|
|
})
|
|
|
|
})
|