mirror of
https://github.com/gchq/CyberChef
synced 2025-01-04 00:38:41 +00:00
24 lines
520 B
JavaScript
24 lines
520 B
JavaScript
/**
|
|
* Parse ObjectID timestamp tests
|
|
*
|
|
* @author dmfj [dominic@dmfj.io]
|
|
*
|
|
* @copyright Crown Copyright 2018
|
|
* @license Apache-2.0
|
|
*/
|
|
import TestRegister from "../../lib/TestRegister.mjs";
|
|
|
|
|
|
TestRegister.addTests([
|
|
{
|
|
name: "Parse ISO timestamp from ObjectId",
|
|
input: "000000000000000000000000",
|
|
expectedOutput: "1970-01-01T00:00:00.000Z",
|
|
recipeConfig: [
|
|
{
|
|
op: "Parse ObjectID timestamp",
|
|
args: [],
|
|
}
|
|
],
|
|
}
|
|
]);
|