Skip to content

Commit

Permalink
fix(tests): inrease of timeout and remove of assertion error
Browse files Browse the repository at this point in the history
  • Loading branch information
Babanila committed Jul 18, 2018
1 parent e545e57 commit fbcad3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/spec/integration/cleanup.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Helper = require '../helper/helper'
projectKey = process.env.SPHERE_PROJECT_KEY || "producttype-json-generator-tests"

describe 'Project cleanup', ->
this.timeout 15000
sphereClient = null

console.log "Removing productTypes from project", projectKey
Expand Down
3 changes: 2 additions & 1 deletion src/spec/integration/product-type-importer.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ testProductType = {
}

describe 'ProductTypeImporter', ->
this.timeout 30000
importer = null
sphereClient = null

Expand Down Expand Up @@ -106,7 +107,7 @@ describe 'ProductTypeImporter', ->
.then ->
done "Importer wrong product type"
.catch (err) ->
expect(err.toString()).to.equal "TypeError: Cannot read property 'name' of undefined"
expect(err.toString()).to.equal '''Error: Validation error on productType "product-type-key" - should have required property \'name\''''
sphereClient.productTypes.fetch()
.then (res) ->
expect(res.body.results.length).to.equal 0
Expand Down

0 comments on commit fbcad3c

Please sign in to comment.