Skip to content

Commit

Permalink
✅ Increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
davidecaruso committed Jun 12, 2018
1 parent 2e5d18a commit e70e040
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions .nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
],
"reporter": [
"lcov",
"html",
"text"
],
"all": true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"style-loader": "^0.18.2",
"ts-loader": "^4.2.0",
"ts-node": "^6.1.0",
"typed.js": "^2.0.6",
"typed.js": "^2.0.7",
"typescript": "^2.8.1",
"uglifyjs-webpack-plugin": "^1.2.4",
"universal-style-loader": "^0.16.3",
Expand Down
13 changes: 12 additions & 1 deletion test/main.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {should} from "should";
import {expect} from "chai";
import * as Typed from "typed.js";

const JSDOM = (require("jsdom")).JSDOM;
const GLOBAL: any = global;
Expand Down Expand Up @@ -175,6 +175,17 @@ describe("Shell", () => {
});
});

describe("\"options.typed\" property", () => {
context('when is not false', () => {
describe("HTML element", () => {
it("should have \"typed\" class", () => {
shell = new Shell('#shell', {typed: Typed, commands: ['foo']});
expect(div.classList.contains("typed")).to.be.true;
});
});
});
});

after(() => {
document.body.removeChild(div);
});
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7464,7 +7464,7 @@ type-is@~1.6.15, type-is@~1.6.16:
media-typer "0.3.0"
mime-types "~2.1.18"

typed.js@^2.0.6:
typed.js@^2.0.7:
version "2.0.7"
resolved "https://registry.yarnpkg.com/typed.js/-/typed.js-2.0.7.tgz#d4041ff351bc8995f9f8b6f54a2a23606b365e1a"

Expand Down

0 comments on commit e70e040

Please sign in to comment.