From 725198516acced4acd220a7b9bb0f492e6003ae1 Mon Sep 17 00:00:00 2001 From: Alexandre Magno Date: Tue, 19 Dec 2023 17:30:33 +0100 Subject: [PATCH] better handling order status and fixing user login test --- test/transfer.test.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/transfer.test.js diff --git a/test/transfer.test.js b/test/transfer.test.js new file mode 100644 index 000000000..acdf4acb7 --- /dev/null +++ b/test/transfer.test.js @@ -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(); + }); + }) + }) +}) \ No newline at end of file