Skip to content

Commit

Permalink
chore: upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tbassetto committed May 15, 2019
1 parent a42bd27 commit e48b2a9
Show file tree
Hide file tree
Showing 3 changed files with 787 additions and 664 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"eslint": "^5.15.2",
"eslint-config-prettier": "^4.1.0",
"eslint-config-recommended": "^4.0.0",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-node": "^9.0.1",
"jest": "^24.5.0"
},
"scripts": {
Expand Down
22 changes: 17 additions & 5 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,24 @@ describe("generateFonts", function() {
global.console = {
log: jest.fn()
};
const result = await generateFonts("My Font", "test/icons/*.svg", "test/dist");
const result = await generateFonts(
"My Font",
"test/icons/*.svg",
"test/dist"
);
expect(result.fontName).toEqual("My Font");
expect(result.fontFiles.svg).toEqual(path.join("test", "dist", "My Font.svg"));
expect(result.fontFiles.ttf).toEqual(path.join("test", "dist", "My Font.ttf"));
expect(result.fontFiles.woff).toEqual(path.join("test", "dist", "My Font.woff"));
expect(result.fontFiles.woff2).toEqual(path.join("test", "dist", "My Font.woff2"));
expect(result.fontFiles.svg).toEqual(
path.join("test", "dist", "My Font.svg")
);
expect(result.fontFiles.ttf).toEqual(
path.join("test", "dist", "My Font.ttf")
);
expect(result.fontFiles.woff).toEqual(
path.join("test", "dist", "My Font.woff")
);
expect(result.fontFiles.woff2).toEqual(
path.join("test", "dist", "My Font.woff2")
);
expect(result.glyphsData.length).toEqual(5);
expect(result.glyphsData[0]).toEqual({
name: "accessibility_16",
Expand Down
Loading

0 comments on commit e48b2a9

Please sign in to comment.