Skip to content

Commit

Permalink
fix: default e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
mvayngrib committed Jan 17, 2018
1 parent a4fa2be commit 1ce7c5b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
11 changes: 3 additions & 8 deletions lib/test/end-to-end.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions src/test/end-to-end.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const genIdentity = async (tradle:Tradle) => {
// }())

const baseModels = require('../models')
const defaultProducts = ['tradle.CorporateBankAccount']
const DEFAULT_PRODUCT = 'nl.tradle.DigitalPassport'
const SIMPLE_MESSAGE = 'tradle.SimpleMessage'
const APPLICATION = 'tradle.Application'

Expand Down Expand Up @@ -98,7 +98,7 @@ export class Test {
public runEmployeeAndCustomer = wrapWithIntercept(async (opts={}) => {
await this._ready

const { product=this.products[0] } = opts
const { product=DEFAULT_PRODUCT } = opts
const { tradle, bot } = this
const [
employee,
Expand Down Expand Up @@ -211,7 +211,7 @@ export class Test {
}: {
user:User,
relationshipManager?:User,
product?:string
product:string
}) => {
const { bot, models } = this

Expand Down Expand Up @@ -272,7 +272,7 @@ export class Test {
const result = await this.runThroughApplication({
user,
relationshipManager,
product: product || this.products[0],
product,
awaitCertificate: true
})

Expand All @@ -293,11 +293,11 @@ export class Test {
}
})

conversation.forEach((item, i) => {
if (!_.isEqual(item, storedConversation.items[i])) {
debugger
}
})
// conversation.forEach((item, i) => {
// if (!_.isEqual(item, storedConversation.items[i])) {
// debugger
// }
// })

// assert.deepEqual(conversation, storedConversation.items)
return result
Expand Down

0 comments on commit 1ce7c5b

Please sign in to comment.