mirror of
https://github.com/gchq/CyberChef
synced 2026-01-04 01:23:18 +00:00
add operation input case to chef.search
This commit is contained in:
@@ -127,4 +127,10 @@ TestRegister.addApiTests([
|
||||
const result = chef.help("some invalid function name");
|
||||
assert.strictEqual(result, null);
|
||||
}),
|
||||
|
||||
it("chef.help: takes a wrapped operation as input", () => {
|
||||
const result = chef.help(chef.toBase32);
|
||||
assert.strictEqual(result.name, "toBase32");
|
||||
assert.strictEqual(result.module, "Default");
|
||||
})
|
||||
]);
|
||||
|
||||
@@ -134,5 +134,10 @@ color: white;
|
||||
assert.strictEqual(result.toString(), "SPI1R1T0");
|
||||
}),
|
||||
|
||||
it("toBase64: editableOptions default", () => {
|
||||
const result = toBase64("some input");
|
||||
assert.strictEqual(result.toString(), "c29tZSBpbnB1dA==");
|
||||
}),
|
||||
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user