Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

danger

Package Overview
Dependencies
Maintainers
1
Versions
320
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

danger - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

20

distribution/ci_source/_tests/_travis.test.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc