Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
adds .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehazell committed Jun 18, 2018
1 parent 863ee91 commit db39e59
Show file tree
Hide file tree
Showing 5 changed files with 1,167 additions and 8 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: node_js
node_js:
- '6'
cache:
yarn: true
directories:
- node_modules
script:
- yarn test
- yarn lint
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"contributors": [
"Joseph Gentle <[email protected]>",
"Mike Hazell <[email protected]>",
"Jed Watson"
"Jed Watson <[email protected]>"
],
"license": "MIT",
"bugs": {
Expand All @@ -26,7 +26,7 @@
"sinon": "^6.0.0"
},
"scripts": {
"test": "eslint . && mocha test.js",
"test": "mocha",
"lint": "eslint ."
},
"repository": {
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions tests/index.test.js → test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ describe('uploadFile', function () {

const file = {
originalname: 'test-file.txt',
path: pathlib.resolve(__dirname, 'test-file.txt'),
path: pathlib.resolve(__dirname, '_fixtures/test-file.txt'),
mimetype: 'text/plain',
size: '18',
};
Expand Down Expand Up @@ -168,7 +168,7 @@ describe('uploadFile', function () {
const file = {
filename: 'test-file.txt',
originalname: 'test-file.txt',
path: pathlib.resolve(__dirname, 'test-file.txt'),
path: pathlib.resolve(__dirname, '_fixtures/test-file.txt'),
mimetype: 'text/plain',
size: '18',
};
Expand Down Expand Up @@ -200,7 +200,7 @@ describe('uploadFile', function () {
const file = {
filename: 'test-file.txt',
originalname: 'test-file.txt',
path: pathlib.resolve(__dirname, 'test-file.txt'),
path: pathlib.resolve(__dirname, '_fixtures/test-file.txt'),
mimetype: 'text/plain',
size: '18',
};
Expand Down Expand Up @@ -232,7 +232,7 @@ describe('uploadFile', function () {

const file = {
originalname: 'test-file.txt',
path: pathlib.resolve(__dirname, 'test-file.txt'),
path: pathlib.resolve(__dirname, '_fixtures/test-file.txt'),
mimetype: 'text/plain',
size: '18',
};
Expand Down Expand Up @@ -263,7 +263,7 @@ describe('uploadFile', function () {

const file = {
originalname: 'test-file.txt',
path: pathlib.resolve(__dirname, 'test-file.txt'),
path: pathlib.resolve(__dirname, '_fixtures/test-file.txt'),
mimetype: 'text/plain',
size: '18',
};
Expand Down Expand Up @@ -306,7 +306,7 @@ describe('uploadFile', function () {

const file = {
originalname: 'test-file.txt',
path: pathlib.resolve(__dirname, 'test-file.txt'),
path: pathlib.resolve(__dirname, '_fixtures/test-file.txt'),
mimetype: 'text/plain',
size: '18',
};
Expand Down
Loading

0 comments on commit db39e59

Please sign in to comment.