Skip to content

Commit

Permalink
added travis build status, fixing syntax issues for node 4 and node 5…
Browse files Browse the repository at this point in the history
… environments
  • Loading branch information
richardgirges committed Feb 18, 2017
1 parent 266c10d commit ec57037
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Description
Simple express middleware for uploading files.

[![Build Status](https://travis-ci.org/richardgirges/express-fileupload.svg?branch=master)](https://travis-ci.org/richardgirges/express-fileupload)

# Version 0.1.0 Breaking Changes

## BREAKING CHANGE: No more urlencoded support
Expand Down
6 changes: 2 additions & 4 deletions test/multipartFields.spec.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use strict';

const request = require('supertest');

const {
app
} = require('./server');
const server = require('./server');
const app = server.app;

let mockUser = {
firstName: 'Joe',
Expand Down
12 changes: 5 additions & 7 deletions test/multipartUploads.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
const fs = require('fs');
const path = require('path');
const request = require('supertest');

const {
clearUploadsDir,
fileDir,
uploadDir,
app
} = require('./server');
const server = require('./server');
const app = server.app;
const clearUploadsDir = server.clearUploadsDir;
const fileDir = server.fileDir;
const uploadDir = server.uploadDir;

const mockFiles = [
'car.png',
Expand Down

0 comments on commit ec57037

Please sign in to comment.