Skip to content

Commit

Permalink
Demo for automation test (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimkha committed Apr 14, 2015
1 parent b65460a commit 6a67d8d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ gulp.task('jshint', function() {

//run test script with jasmine
gulp.task('test', ['jshint'], function () {
return gulp.src('test/avim.test.js')
return gulp.src(['test/avim.test.js'])
.pipe(jasmine());
});

Expand Down
10 changes: 8 additions & 2 deletions test/avim.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
"use strict";
//"use strict";

//eval(require('fs').readFileSync('./src/scripts/avim.js','utf-8'));
// TODO Should remove eval() and turn on strict mode
eval(require('fs').readFileSync('./src/scripts/avim.js','utf-8'));

describe("Demo", function() {
it("with fromCharCode", function() {
expect(fromCharCode(272)).toBe("Đ");
});
});

0 comments on commit 6a67d8d

Please sign in to comment.