Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
typings inside test, devdependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbommarito committed Jun 15, 2016
1 parent ce6ac09 commit 38b3ba7
Show file tree
Hide file tree
Showing 15 changed files with 11 additions and 1,089 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ gulp.task("compile-test", function () {
var ts = require("gulp-typescript");
var insert = require("gulp-insert");

return gulp.src([testPath + tsFiles])
return gulp.src([testPath + "/test.ts"])
.pipe(ts(tsCompileOptions))
.pipe(insert.prepend(compiledSourceWarningMessage))
.pipe(gulp.dest(path.join(binPath, testPath)));
Expand Down Expand Up @@ -158,7 +158,7 @@ gulp.task("tslint", function () {
}
}

return gulp.src([testPath + tsFiles])
return gulp.src([testPath + tsFiles, "!" + testPath + "/typings/*"])
.pipe(tslint({ configuration: config }))
.pipe(tslint.report("verbose"));
});
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
"url": "https://github.com/Microsoft/react-native-code-push"
},
"dependencies": {
"code-push": "1.8.0-beta"
},
"devDependencies": {
"archiver": "latest",
"body-parser": "latest",
"code-push": "1.8.0-beta",
"del": "latest",
"express": "latest",
"gulp-typescript": "2.12.2",
Expand Down
13 changes: 6 additions & 7 deletions test/test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/// <reference path="../typings/assert.d.ts" />
/// <reference path="../typings/codePush.d.ts" />
/// <reference path="./typings/assert.d.ts" />
/// <reference path="../node_modules/code-push-plugin-testing-framework/typings/code-push-plugin-testing-framework.d.ts" />
/// <reference path="../typings/mocha.d.ts" />
/// <reference path="../typings/mkdirp.d.ts" />
/// <reference path="../typings/node.d.ts" />
/// <reference path="../typings/q.d.ts" />
/// <reference path="./typings/mocha.d.ts" />
/// <reference path="./typings/mkdirp.d.ts" />
/// <reference path="./typings/node.d.ts" />
/// <reference path="./typings/q.d.ts" />

"use strict";

Expand Down Expand Up @@ -571,7 +570,7 @@ PluginTestingFramework.initializeTests(new RNProjectManager(), supportedTargetPl
try {
assert.equal(requestBody.message, ServerUtil.TestMessage.CHECK_UPDATE_AVAILABLE);
assert.notEqual(requestBody.args[0], null);
var remotePackage: IRemotePackage = requestBody.args[0];
var remotePackage: any = requestBody.args[0];
assert.equal(remotePackage.downloadUrl, updateResponse.downloadURL);
assert.equal(remotePackage.isMandatory, updateResponse.isMandatory);
assert.equal(remotePackage.label, updateResponse.label);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 38b3ba7

Please sign in to comment.