WIP HAD to move NodeDish out - NONE of it is async!

This commit is contained in:
d98762625 2019-02-15 15:20:05 +00:00
parent aafde8986d
commit 04b7f2fa8c
16 changed files with 442 additions and 411 deletions

View file

@ -14,7 +14,7 @@ import assert from "assert";
import it from "../assertionHandler";
import chef from "../../../src/node/index";
import OperationError from "../../../src/core/errors/OperationError";
import SyncDish from "../../../src/node/SyncDish";
import NodeDish from "../../../src/node/NodeDish";
import fs from "fs";
import { toBase32, Dish, SHA3 } from "../../../src/node/index";
@ -93,9 +93,9 @@ TestRegister.addApiTests([
assert.equal(result.get("string"), "NFXHA5LU");
}),
it("should return a SyncDish", () => {
it("should return a NodeDish", async () => {
const result = chef.toBase32("input");
assert(result instanceof SyncDish);
assert(result instanceof NodeDish);
}),
it("should coerce to a string as you expect", () => {