Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Commit

Permalink
Remove the dependency to chai
Browse files Browse the repository at this point in the history
  • Loading branch information
vHanda committed Sep 10, 2018
1 parent 9234c44 commit 1cfdda6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
},
"author": "",
"dependencies": {
"chai": "3.5.0",
"cheerio": "0.22.0",
"moment": "^2.14.1",
"to-markdown": "3.0.1",
Expand All @@ -18,7 +17,6 @@
"devDependencies": {
"@types/jest": "^23.3.2",
"@types/node": "^10.9.4",
"chai": "^3.5.0",
"jest": "^23.6.0",
"ts-jest": "^23.1.4",
"typescript": "^3.0.3"
Expand Down
12 changes: 5 additions & 7 deletions src/parser.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
var assert = require("chai").assert;
import { parse } from "./parser";

describe("Parser", function() {
Expand All @@ -14,14 +13,13 @@ describe("Parser", function() {

console.log(parse);
var note = parse(data);
assert.deepEqual(note.title, "Ll");
expect(note.title).toBe("Ll");
// FIXME: Is the extra space really required?
assert.deepEqual(
note.content,
expect(note.content).toBe(
"Hearts of darkness \nWater ship down \nThe Dubliners"
);
assert.deepEqual(note.tags, ["Reading List", "Another Tag"]);
assert.notOk(note.archived);
assert.deepEqual(note.date, "2016-06-21T20:39:47.000Z");
expect(note.tags).toEqual(["Reading List", "Another Tag"]);
expect(note.archived).toBe(false);
expect(note.date).toBe("2016-06-21T20:39:47.000Z");
});
});

0 comments on commit 1cfdda6

Please sign in to comment.