-
-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get all them testing and es6 ducks lined up
- Loading branch information
Showing
5 changed files
with
22 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"presets": [ | ||
"es2016" | ||
"es2015" | ||
], | ||
"plugins": ["transform-flow-strip-types"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ interfaces/ | |
flow-typed/ | ||
|
||
[options] | ||
unsafe.enable_getters_and_setters=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
import Travis from "../travis.js" | ||
|
||
test("adds 1 + 2 to equal 3", () => { | ||
// import { Travis } from "../travis.js" | ||
let Travis = require("../travis.js") | ||
let travis = new Travis({thing: ""}) | ||
expect(travis.env).toBe({thing: ""}) | ||
let correctEnv = { | ||
"HAS_JOSH_K_SEAL_OF_APPROVAL": "true", | ||
"TRAVIS_PULL_REQUEST": "800", | ||
"TRAVIS_REPO_SLUG": "artsy/eigen" | ||
} | ||
|
||
describe(".validates_as_ci?", () => { | ||
test("validates when all Travis environment vars are set and Josh K says so", () => { | ||
let travis = new Travis(correctEnv) | ||
expect(travis.isCI).toBeTruthy() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters