This repository has been archived by the owner on Apr 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from LiskHQ/51_test-coverage
Adding test coverage metric that works with Angular - Closes #51
- Loading branch information
Showing
10 changed files
with
84 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
import 'jquery'; | ||
|
||
import 'angular'; | ||
import 'angular-animate'; | ||
import 'angular-cookies'; | ||
import 'angular-aria'; | ||
import 'angular-messages'; | ||
import 'angular-material'; | ||
import 'angular-material/angular-material.css'; | ||
import 'angular-material-data-table/dist/md-data-table'; | ||
import 'angular-material-data-table/dist/md-data-table.css'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import './index.less'; | ||
|
||
import './theme/theme'; | ||
import './util/animateOnChange/animateOnChange'; | ||
import './components/main/main'; | ||
import './components/login/login'; | ||
import './components/top/top'; | ||
import './components/send/send'; | ||
import './components/transactions/transactions'; | ||
import './components/timestamp/timestamp'; | ||
import './components/lsk/lsk'; | ||
|
||
import './services/peers/peers'; | ||
import './services/lsk'; | ||
import './services/success'; | ||
import './services/error'; | ||
|
||
import './filters/lsk'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
describe('Login component', function() { | ||
var $compile, | ||
$rootScope; | ||
|
||
// Load the myApp module, which contains the directive | ||
beforeEach(angular.mock.module("app")); | ||
|
||
// Store references to $rootScope and $compile | ||
// so they are available to all tests in this describe block | ||
beforeEach(inject(function(_$compile_, _$rootScope_){ | ||
// The injector unwraps the underscores (_) from around the parameter names when matching | ||
$compile = _$compile_; | ||
$rootScope = _$rootScope_; | ||
})); | ||
|
||
it('should contain header', function() { | ||
// Compile a piece of HTML containing the directive | ||
var element = $compile("<login></login>")($rootScope); | ||
$rootScope.$digest(); | ||
expect(element.html()).to.contain("Sign In"); | ||
}); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
var expect = require('chai').expect; | ||
|
||
describe('Top component', function() { | ||
var $compile, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
require('../app'); | ||
|
||
require('angular-mocks/angular-mocks'); | ||
require('chai'); | ||
|
||
require('./components/login/login.spec'); | ||
require('./components/top/top.spec'); | ||
|