Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
testHelper is missing and some variable is missing in Mocha Test
Signed-off-by: Sidney <xinyij@ca.ibm.com>
  • Loading branch information
SidneyJiang committed Sep 11, 2017
1 parent 6646969 commit 6ff3bf8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions modules/orionode/test/endpoints/test-site.js
Expand Up @@ -16,6 +16,7 @@ var assert = require('assert'),
supertest = require('supertest'),
store = require('../../lib/metastore/fs/store'),
testData = require('../support/test_data'),
testHelper = require('../support/testHelper'),
sites = require('../../lib/sites');

var CONTEXT_PATH = '',
Expand Down
10 changes: 6 additions & 4 deletions modules/orionode/test/metastore/test-simple.js
Expand Up @@ -307,16 +307,17 @@ describe("Orion metastore", function() {
testHelper.withWorkspace(request, PREFIX, WORKSPACE_ID)
.end(function(err, res) {
testHelper.throwIfError(err);
var ws = res.body.Location;
request()
.post(res.body.Location)
.post(ws)
.type('json')
.send({Name: 'testMoveProjectWith|InProjectName'})
.expect(201)
.end(function(err, res) {
testHelper.throwIfError(err);
var pLoc = res.body.Location;
request()
.post(ws.Location)
.post(ws)
.type('json')
.set('X-Create-Options', "move")
.set('Slug', 'testMoveProjectWith|InProjectNameMOVED')
Expand All @@ -336,16 +337,17 @@ describe("Orion metastore", function() {
testHelper.withWorkspace(request, PREFIX, WORKSPACE_ID)
.end(function(err, res) {
testHelper.throwIfError(err);
var ws = res.body.Location;
request()
.post(res.body.Location)
.post(ws)
.type('json')
.send({Name: 'testMoveSimpleProject'})
.expect(201)
.end(function(err, res) {
testHelper.throwIfError(err);
var pLoc = res.body.Location;
request()
.post(ws.Location)
.post(ws)
.type('json')
.set('X-Create-Options', "move")
.set('Slug', 'testMoveSimpleProjectMOVED')
Expand Down

0 comments on commit 6ff3bf8

Please sign in to comment.