Skip to content

Commit

Permalink
Init test
Browse files Browse the repository at this point in the history
  • Loading branch information
matuzalemsteles committed May 30, 2017
1 parent 5d995d2 commit e690fb4
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/app/app.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import App from '../../src/app/App';

describe('App', () => {
it('should enabled false', () => {
let options = {
routes: ['*.html'],
enabled: false
};
let app = new App(options);
expect(app).toMatchObject({"enabled": false, "path": null, "routes": ["*.html"]});
})

it('should enabled success', () => {
let options = {
routes: ['*.html'],
enabled: true
};
let app = new App(options);
expect(app).toMatchObject({"enabled": true, "path": null, "routes": ["*.html"]});
})
})

0 comments on commit e690fb4

Please sign in to comment.