Skip to content

Commit

Permalink
Setup placeholder for node tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rileytomasek committed Apr 12, 2016
1 parent 438b7b6 commit cc5077c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"build": "npm run browserify && npm run uglify && npm run compressed-size",
"develop": "npm run watch & npm run examples-server",
"lint": "eslint src",
"test": "mocha-phantomjs /test/browser/index.html",
"test": "npm run browser-tests && npm run node-tests",
"browser-tests": "mocha-phantomjs /test/browser/index.html",
"node-tests": "mocha 'test/node/*.js'",
"watch": "npm run clean && watchify src/dropbox-api.js -d -v -s DropboxApi -o dist/dropbox-sdk.js",
"browserify": "npm run clean && browserify src/dropbox-api.js --standalone DropboxApi -o dist/dropbox-sdk.js",
"uglify": "uglifyjs dist/dropbox-sdk.js -mc 'warnings=false' -o dist/dropbox-sdk.min.js",
Expand Down
2 changes: 1 addition & 1 deletion test/browser/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ after(function () {
dbx = null;
});

describe('DropboxApi', function () {
describe('DropboxApi [Browser]', function () {
it('makes a POST request for folder items', function () {
var request;
dbx.listFolder('/Screenshots');
Expand Down
13 changes: 13 additions & 0 deletions test/node/tests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var DropboxApi = require('../../index');
var chai = require('chai');
var mocha = require('mocha');
var sinon = require('sinon');

var assert = chai.assert;

// Placeholder test
describe('DropboxApi [Node]', function () {
it('makes a POST request for folder items', function () {
assert.equal(true, true);
});
});

0 comments on commit cc5077c

Please sign in to comment.