mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-25 17:26:17 -04:00
WIP tidy up. WHy is dish being passed back with chef.bake now?
This commit is contained in:
parent
573a292e16
commit
9094e8bde9
6 changed files with 7 additions and 12 deletions
|
@ -160,9 +160,9 @@ TestRegister.addApiTests([
|
|||
assert(chef.bake);
|
||||
}),
|
||||
|
||||
it("chef.bake: should return SyncDish", () => {
|
||||
it("chef.bake: should return NodeDish", () => {
|
||||
const result = chef.bake("input", "to base 64");
|
||||
assert(result instanceof SyncDish);
|
||||
assert(result instanceof NodeDish);
|
||||
}),
|
||||
|
||||
it("chef.bake: should take an input and an op name and perform it", () => {
|
||||
|
@ -222,7 +222,7 @@ TestRegister.addApiTests([
|
|||
it("chef.bake: if recipe is empty array, return input as dish", () => {
|
||||
const result = chef.bake("some input", []);
|
||||
assert.strictEqual(result.toString(), "some input");
|
||||
assert(result instanceof SyncDish, "Result is not instance of SyncDish");
|
||||
assert(result instanceof NodeDish, "Result is not instance of NodeDish");
|
||||
}),
|
||||
|
||||
it("chef.bake: accepts an array of operations as recipe", () => {
|
||||
|
@ -332,7 +332,7 @@ TestRegister.addApiTests([
|
|||
|
||||
it("Composable Dish: composed function returns another dish", () => {
|
||||
const result = new Dish("some input").apply(toBase32);
|
||||
assert.ok(result instanceof SyncDish);
|
||||
assert.ok(result instanceof NodeDish);
|
||||
}),
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue