-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #194 from conveyal/dev
v3.9.0
- Loading branch information
Showing
42 changed files
with
918 additions
and
562 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
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,4 +1,4 @@ | ||
/* global jest */ | ||
|
||
const AWS = module.exports = jest.genMockFromModule('aws-sdk') | ||
AWS.S3.prototype.upload = () => ({send: (fn) => fn()}) | ||
const AWS = (module.exports = jest.genMockFromModule('aws-sdk')) | ||
AWS.S3.prototype.upload = () => ({send: fn => fn()}) |
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,9 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`build development should transform css 1`] = `345`; | ||
exports[`build development should transform css 1`] = `86`; | ||
|
||
exports[`build development should transform js 1`] = `157929`; | ||
|
||
exports[`build production should transform and minify js and css 1`] = `156127`; | ||
|
||
exports[`build production should transform and minify js and css 2`] = `345`; | ||
exports[`build production should transform and minify js and css 2`] = `86`; |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`format can format a file 1`] = ` | ||
"function a () { | ||
return 1 | ||
} | ||
" | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* globals afterEach, beforeEach, describe, expect, it */ | ||
|
||
const fs = require('fs') | ||
|
||
const rimraf = require('rimraf') | ||
|
||
const format = require('../../lib/format') | ||
|
||
describe('format', () => { | ||
beforeEach(done => fs.writeFile('test.js', 'function a(){return 1;}', done)) | ||
afterEach(done => rimraf('test.js', done)) | ||
|
||
it('can format a file', done => { | ||
format(['test.js']).then(() => { | ||
expect(fs.readFileSync('test.js', {encoding: 'utf-8'})).toMatchSnapshot() | ||
done() | ||
}) | ||
}) | ||
}) |
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
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
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
Oops, something went wrong.