Commit d8ad1adb authored by Panagiotis Skarvelis's avatar Panagiotis Skarvelis
Browse files

test seq types

parent 17f6fba0
......@@ -7,7 +7,22 @@ const test = async () => {
}
const test2 = async () => {
const ar = await generateAuditRecord(undefined, new FileEngine('/tmp'));
const ar = await generateAuditRecord(undefined, new FileEngine('/tmp'));
console.log(ar);
}
const test3 = async () => {
const ar = await generateAuditRecord(undefined, new FileEngine('/tmp', 'daily'));
console.log(ar);
}
const test4 = async () => {
const ar = await generateAuditRecord(undefined, new FileEngine('/tmp', 'monthly'));
console.log(ar);
}
const test5 = async () => {
const ar = await generateAuditRecord(undefined, new FileEngine('/tmp', 'yearly'));
console.log(ar);
}
......@@ -17,4 +32,11 @@ test();
console.log("Audit Record Generator, change file engine path");
test2();
console.log("Audit Record Generator, use daily sequence");
test3();
console.log("Audit Record Generator, use monthly sequence");
test4();
console.log("Audit Record Generator, use yearly sequence");
test5();
\ No newline at end of file
......@@ -2,12 +2,27 @@ import {generateAuditRecord} from '../dist/esm/index.js'
import { FileEngine } from '../dist/esm/engines/index.js';
const test = async () => {
const ar = await generateAuditRecord();
const ar = await generateAuditRecord();
console.log(ar);
}
const test2 = async () => {
const ar = await generateAuditRecord(undefined, new FileEngine('/tmp'));
const ar = await generateAuditRecord(undefined, new FileEngine('/tmp'));
console.log(ar);
}
const test3 = async () => {
const ar = await generateAuditRecord(undefined, new FileEngine('/tmp', 'daily'));
console.log(ar);
}
const test4 = async () => {
const ar = await generateAuditRecord(undefined, new FileEngine('/tmp', 'monthly'));
console.log(ar);
}
const test5 = async () => {
const ar = await generateAuditRecord(undefined, new FileEngine('/tmp', 'yearly'));
console.log(ar);
}
......@@ -17,3 +32,12 @@ test();
console.log("Audit Record Generator, change file engine path");
test2();
console.log("Audit Record Generator, use daily sequence");
test3();
console.log("Audit Record Generator, use monthly sequence");
test4();
console.log("Audit Record Generator, use yearly sequence");
test5();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment