Skip to content

Commit

Permalink
fix: fixed test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Arylo committed Jan 2, 2019
1 parent ef47d64 commit 9df03e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parse.spec.ts
Expand Up @@ -7,14 +7,14 @@ test.beforeEach(async () => {
filepath = await copyFileMacro("raw.file");
});

test("Read File", (t) => {
test("Read File with JSON type", (t) => {
const str = config.readFile(filepath).toObject();
t.is(typeof str, "string");
const obj = config.readFile(filepath, { type: "json" }).toObject();
t.is(typeof obj, "object");
});

test("Read File", (t) => {
test("Read File with RAW type", (t) => {
const str1 = config.readFile(filepath).toObject();
const str2 = config.readFile(filepath, { type: "raw" }).toObject();
t.is(str1, str2);
Expand Down

0 comments on commit 9df03e9

Please sign in to comment.