Comparing version 0.0.6 to 0.0.7
"use strict"; | ||
var _travis = require("../travis.js"); | ||
var _Travis = require("../Travis"); | ||
var _travis2 = _interopRequireDefault(_travis); | ||
var _Travis2 = _interopRequireDefault(_Travis); | ||
@@ -17,3 +17,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
test("validates when all Travis environment vars are set and Josh K says so", function () { | ||
var travis = new _travis2.default(correctEnv); | ||
var travis = new _Travis2.default(correctEnv); | ||
expect(travis.isCI).toBeTruthy(); | ||
@@ -23,3 +23,3 @@ }); | ||
test("does not validate without josh", function () { | ||
var travis = new _travis2.default({}); | ||
var travis = new _Travis2.default({}); | ||
expect(travis.isCI).toBeFalsy(); | ||
@@ -31,3 +31,3 @@ }); | ||
test("validates when all Travis environment vars are set and Josh K says so", function () { | ||
var travis = new _travis2.default(correctEnv); | ||
var travis = new _Travis2.default(correctEnv); | ||
expect(travis.isPR).toBeTruthy(); | ||
@@ -37,3 +37,3 @@ }); | ||
test("does not validate without josh", function () { | ||
var travis = new _travis2.default({}); | ||
var travis = new _Travis2.default({}); | ||
expect(travis.isPR).toBeFalsy(); | ||
@@ -52,3 +52,3 @@ }); | ||
test("does not validate when " + key + " is missing", function () { | ||
var travis = new _travis2.default({}); | ||
var travis = new _Travis2.default({}); | ||
expect(travis.isPR).toBeFalsy(); | ||
@@ -64,3 +64,3 @@ }); | ||
}; | ||
var travis = new _travis2.default(env); | ||
var travis = new _Travis2.default(env); | ||
expect(travis.isPR).toBeFalsy(); | ||
@@ -72,3 +72,3 @@ }); | ||
it("pulls it out of the env", function () { | ||
var travis = new _travis2.default(correctEnv); | ||
var travis = new _Travis2.default(correctEnv); | ||
expect(travis.pullRequestID).toEqual("800"); | ||
@@ -80,3 +80,3 @@ }); | ||
it("pulls it out of the env", function () { | ||
var travis = new _travis2.default(correctEnv); | ||
var travis = new _Travis2.default(correctEnv); | ||
expect(travis.repoSlug).toEqual("artsy/eigen"); | ||
@@ -83,0 +83,0 @@ }); |
@@ -104,2 +104,4 @@ "use strict"; | ||
if (err) { | ||
console.error("Error: " + err.message); | ||
process.exitCode = 1; | ||
return reject(err); | ||
@@ -106,0 +108,0 @@ } |
{ | ||
"name": "danger", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Automate your culture", | ||
@@ -22,2 +22,3 @@ "main": "distribution/danger.js", | ||
"fix": "eslint ./source --fix", | ||
"prepublish": "npm run build", | ||
"build": "babel source --out-dir distribution --source-maps", | ||
@@ -24,0 +25,0 @@ "buildwatch": "babel source --watch --out-dir distribution", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
382336
5017