Skip to content

Commit

Permalink
chore: comestics
Browse files Browse the repository at this point in the history
  • Loading branch information
aelesbao committed Aug 28, 2023
1 parent b7177d5 commit e4061a2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
4 changes: 0 additions & 4 deletions test/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,21 @@ function testRemoveFileStore(context) {
}

function run(context) {
console.log("");
assert.doesNotThrow(
testSetFileStore(context),
undefined,
"testSetFileStore threw an expection"
);
console.log("");
assert.doesNotThrow(
testGetFileStore(context),
undefined,
"testGetFileStore threw an expection"
);
console.log("");
assert.doesNotThrow(
testListFileStore(context),
undefined,
"testListFileStore threw an expection"
);
console.log("");
assert.doesNotThrow(
testRemoveFileStore(context),
undefined,
Expand Down
10 changes: 5 additions & 5 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ const context = {
tmpDir: fs.mkdtempSync(path.join(os.tmpdir(), "archway-keyring-test-")),
};

["file", "os", "unencrypted"].forEach((test) =>
require(`./${test}`).run(context)
);
["file", "os", "unencrypted"].forEach((test) => {
console.log(`\n=> Testing ${test}`);
require(`./${test}`).run(context);
});

try {
fs.rmSync(context.tmpDir, { recursive: true });
Expand All @@ -18,5 +19,4 @@ try {
);
}

console.log("");
console.log("All tests passed!");
console.log("\nAll tests passed!");
4 changes: 0 additions & 4 deletions test/os.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,21 @@ function testRemoveOsStore(_context) {
}

function run(context) {
console.log("");
assert.doesNotThrow(
testSetOsStore(context),
undefined,
"testSetOsStore threw an expection"
);
console.log("");
assert.doesNotThrow(
testGetOsStore(context),
undefined,
"testGetOsStore threw an expection"
);
console.log("");
assert.doesNotThrow(
testListOsStore(context),
undefined,
"testListOsStore threw an expection"
);
console.log("");
assert.doesNotThrow(
testRemoveOsStore(context),
undefined,
Expand Down
4 changes: 0 additions & 4 deletions test/unencrypted.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,25 +73,21 @@ function testRemoveUnencryptedFileStore(context) {
}

function run(context) {
console.log("");
assert.doesNotThrow(
testSetUnencryptedFileStore(context),
undefined,
"testSetUnencryptedFileStore threw an expection"
);
console.log("");
assert.doesNotThrow(
testGetUnencryptedFileStore(context),
undefined,
"testGetUnencryptedFileStore threw an expection"
);
console.log("");
assert.doesNotThrow(
testListUnencryptedFileStore(context),
undefined,
"testListUnencryptedFileStore threw an expection"
);
console.log("");
assert.doesNotThrow(
testRemoveUnencryptedFileStore(context),
undefined,
Expand Down

0 comments on commit e4061a2

Please sign in to comment.