Skip to content

Commit 5d75190

Browse files
committed
test(unit tests): Split all tests in dedicated files
1 parent 9a9df3d commit 5d75190

29 files changed

+4251
-3786
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ To contribute to the project, please follow these steps:
88
4. Run `npm install`
99
5. Run `npm run test`
1010
6. Make your changes
11-
7. Test your changes
11+
7. Test your changes (if you need a new test file, please copy the `test-template.js` file in the tests/specs folder.)
1212
8. Run `npm run build` to generate the dist files
1313
9. Run `git add -A` to add your changes
1414
10. Run `npm run commit` (**Do not** use `git commit`) - follow the prompts to create your git message

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ module.exports = function(grunt) {
133133
tasks: ['css']
134134
},
135135
test: {
136-
files: ['src/*.js', 'tests/spec/*.js'],
136+
files: ['src/*.js', 'tests/specs/**/*.js'],
137137
tasks: ['test']
138138
}
139139
},

karma.conf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ module.exports = function (config) {
1515
'node_modules/angular/angular.js',
1616
'node_modules/angular-mocks/angular-mocks.js',
1717
'src/*.js',
18-
'tests/spec/*.js',
18+
'tests/specs/helper.js',
19+
'tests/specs/**/*-test.js',
1920
'dist/rzslider.css',
2021
'src/*.html'
2122
],

0 commit comments

Comments
 (0)