Skip to content

Commit b36f147

Browse files
committed
changes in test script
1 parent 24cbf9a commit b36f147

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ node_js:
44
before_script:
55
- npm install -g gulp
66
script:
7-
- gulp minifyJS
87
- gulp test

gulpfile.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var testFiles = [
6666
"test/test.js"
6767
];
6868

69-
gulp.task("test", ["testts"], function(){
69+
gulp.task("unittests", ["testts"], function(){
7070
return gulp.src(testFiles)
7171
.pipe(concat("all.js"))
7272
.pipe(gulp.dest("test"))
@@ -75,6 +75,25 @@ gulp.task("test", ["testts"], function(){
7575
}));
7676
});
7777

78+
gulp.task("tslint", function(){
79+
return devTS.src()
80+
.pipe(tslint({
81+
formatter: "stylish"
82+
}))
83+
.pipe(tslint.report({
84+
emitError: true,
85+
summarizeFailureOutput: true
86+
}));
87+
});
88+
89+
gulp.task("lint", ["tslint"], function(){
90+
91+
});
92+
93+
gulp.task("test", ["lint", "unittests"], function(){
94+
95+
});
96+
7897
gulp.task("testserver", function(){
7998
return gulp.src(testFiles)
8099
.pipe(watch(testFiles))

test/all.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ var Linq4JS;
9999
Array.prototype.Add = function (object, generateId) {
100100
var that = this;
101101
if (object != null) {
102-
if (generateId === true) {
102+
if (generateId == true) {
103103
var newIndex_1;
104104
var castedObject = object;
105105
var last = that.LastOrDefault();

0 commit comments

Comments
 (0)