Skip to content

Commit

Permalink
better handling order status and fixing user login test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanmtz committed Dec 19, 2023
1 parent 1fb145e commit 7251985
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/transfer.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'use strict'
const assert = require('assert')
const request = require('supertest')
const expect = require('chai').expect
const chai = require('chai')
const spies = require('chai-spies')
const api = require('../server')
const agent = request.agent(api)
const { registerAndLogin } = require('./helpers')

describe("Transfer", () => {
describe("Initial transfer with one credit card and account activated", () => {
it("should create a new single transfer", (done) => {
registerAndLogin(agent).then((res) => {
expect(res.text).to.contain('token')
done();
});
})
})
})

0 comments on commit 7251985

Please sign in to comment.