Skip to content

Commit 6f30d14

Browse files
committed
Merge pull request #1 from grimrose/pr/change-to-espower-loader
change grunt-espower to espower-loader
2 parents 50bf94c + cc3e1fe commit 6f30d14

File tree

5 files changed

+11
-27
lines changed

5 files changed

+11
-27
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
node_modules
2-
espowered
1+
node_modules

Gruntfile.js

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,13 @@
33
module.exports = function (grunt) {
44

55
grunt.initConfig({
6-
destDir: 'espowered',
7-
86
mochacli: {
97
options: {
108
ui: 'bdd',
11-
reporter: 'spec'
9+
reporter: 'spec',
10+
require: [ 'espower_loader_helper.js' ]
1211
},
13-
all: ['<%= destDir %>/*.js']
14-
},
15-
espower: {
16-
test: {
17-
files: [
18-
{
19-
expand: true,
20-
cwd: 'test/',
21-
src: ['**/*.js'],
22-
dest: '<%= destDir %>/',
23-
ext: '.js'
24-
}
25-
]
26-
}
27-
},
28-
clean: {
29-
test: ['<%= destDir %>/']
12+
all: ['test/*Test.js']
3013
},
3114
jshint: {
3215
options: {
@@ -60,12 +43,10 @@ module.exports = function (grunt) {
6043

6144
grunt.loadNpmTasks('grunt-contrib-jshint');
6245
grunt.loadNpmTasks('grunt-contrib-watch');
63-
grunt.loadNpmTasks('grunt-contrib-clean');
6446

65-
grunt.loadNpmTasks('grunt-espower');
6647
grunt.loadNpmTasks('grunt-mocha-cli');
6748

68-
grunt.registerTask('test', ['clean', 'espower:test', 'mochacli']);
49+
grunt.registerTask('test', ['mochacli']);
6950

7051
// Default task.
7152
grunt.registerTask('default', ['test']);

espower_loader_helper.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require('espower-loader')({
2+
cwd: process.cwd(),
3+
pattern: 'test/**/*Test.js'
4+
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"grunt-contrib-clean": "~0.5.0",
3434
"grunt-mocha-cli": "~1.4.0",
3535
"power-assert": "~0.2.2",
36-
"grunt-espower": "~0.2.1"
36+
"espower-loader": "~0.1.1"
3737
},
3838
"keywords": [
3939
"TDDBC"

test/SampleTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('Sample', function () {
1111

1212
describe('.status', function () {
1313
it('は、trueであるべき', function () {
14-
assert.ok(sut.status == true);
14+
assert.ok(sut.status === true);
1515
});
1616
});
1717

0 commit comments

Comments
 (0)