mirror of
https://github.com/valitydev/fraudbusters-compose.git
synced 2024-11-06 08:25:19 +00:00
Fix after review
This commit is contained in:
parent
aa84ba4c61
commit
e9fbad0b31
@ -1,5 +1,5 @@
|
||||
const referenceFactory = require('./factory/reference_factory.js');
|
||||
const templateFactory = require('./factory/template_factory.js');
|
||||
const referenceService = require('./service/reference_service.js');
|
||||
const templateService = require('./service/template_service.js');
|
||||
const paymentService = require('./service/payment_service.js');
|
||||
const inspectorService = require('./service/inspector_service.js');
|
||||
|
||||
@ -41,7 +41,7 @@ describe('Test for check aggregates', function () {
|
||||
this.timeout(testTimeout);
|
||||
|
||||
it('it should create a new template', function (done) {
|
||||
templateFactory.create(done, (res) => {
|
||||
templateService.create(done, (res) => {
|
||||
res.should.have.status(200);
|
||||
res.should.be.json;
|
||||
res.body.should.be.a("object");
|
||||
@ -56,7 +56,7 @@ describe('Test for check aggregates', function () {
|
||||
});
|
||||
|
||||
it('it should create a new reference for template', function (done) {
|
||||
referenceFactory.create(done, (res) => {
|
||||
referenceService.create(done, (res) => {
|
||||
res.should.have.status(200);
|
||||
res.should.be.json;
|
||||
res.body.should.be.a("array");
|
||||
|
@ -1,5 +1,5 @@
|
||||
const templateFactory = require("./factory/template_factory.js");
|
||||
const referenceFactory = require("./factory/reference_factory.js");
|
||||
const templateService = require("./service/template_service.js");
|
||||
const referenceService = require("./service/reference_service.js");
|
||||
const inspectorService = require('./service/inspector_service.js');
|
||||
|
||||
const chai = require("chai");
|
||||
@ -20,7 +20,7 @@ describe('Test for check geo ip service', function () {
|
||||
this.timeout(testTimeout);
|
||||
|
||||
it('it should create a new template', function (done) {
|
||||
templateFactory.create(done, (res) => {
|
||||
templateService.create(done, (res) => {
|
||||
res.should.have.status(200);
|
||||
res.should.be.json;
|
||||
res.body.should.be.a("object");
|
||||
@ -35,7 +35,7 @@ describe('Test for check geo ip service', function () {
|
||||
});
|
||||
|
||||
it('it should create a new reference for template', function (done) {
|
||||
referenceFactory.create(done, (res) => {
|
||||
referenceService.create(done, (res) => {
|
||||
res.should.have.status(200);
|
||||
res.should.be.json;
|
||||
res.body.should.be.a("array");
|
||||
|
@ -1,5 +1,5 @@
|
||||
const referenceFactory = require('./factory/reference_factory.js');
|
||||
const templateFactory = require('./factory/template_factory.js');
|
||||
const referenceService = require('./service/reference_service.js');
|
||||
const templateService = require('./service/template_service.js');
|
||||
|
||||
const chai = require("chai");
|
||||
const chaiHttp = require("chai-http");
|
||||
@ -17,7 +17,7 @@ describe('Test for simple rule inspection', function () {
|
||||
this.timeout(testTimeout);
|
||||
|
||||
it('it should create a new template', function (done) {
|
||||
templateFactory.create(done, (res) => {
|
||||
templateService.create(done, (res) => {
|
||||
res.should.have.status(200);
|
||||
res.should.be.json;
|
||||
res.body.should.be.a("object");
|
||||
@ -32,7 +32,7 @@ describe('Test for simple rule inspection', function () {
|
||||
});
|
||||
|
||||
it('it should create a new reference for template', function (done) {
|
||||
referenceFactory.create(done, (res) => {
|
||||
referenceService.create(done, (res) => {
|
||||
res.should.have.status(200);
|
||||
res.should.be.json;
|
||||
res.body.should.be.a("array");
|
||||
|
@ -2,8 +2,9 @@ const chai = require("chai");
|
||||
const chaiHttp = require("chai-http");
|
||||
chai.use(chaiHttp);
|
||||
const config = require("../config");
|
||||
const templateFactory = require("./factory/template_factory.js");
|
||||
const referenceFactory = require("./factory/reference_factory.js");
|
||||
|
||||
const templateService = require("./service/template_service.js");
|
||||
const referenceService = require("./service/reference_service.js");
|
||||
const inspectorService = require("./service/inspector_service.js");
|
||||
const paymentService = require("./service/payment_service.js");
|
||||
|
||||
@ -19,7 +20,7 @@ describe('Test for check trusted tokens', function () {
|
||||
this.timeout(testTimeout);
|
||||
|
||||
it('it should create a new template', function (done) {
|
||||
templateFactory.create(done, (res) => {
|
||||
templateService.create(done, (res) => {
|
||||
res.should.have.status(200);
|
||||
res.should.be.json;
|
||||
res.body.should.be.a("object");
|
||||
@ -36,7 +37,7 @@ describe('Test for check trusted tokens', function () {
|
||||
});
|
||||
|
||||
it('it should create a new reference for template', function (done) {
|
||||
referenceFactory.create(done, (res) => {
|
||||
referenceService.create(done, (res) => {
|
||||
res.should.have.status(200);
|
||||
res.should.be.json;
|
||||
res.body.should.be.a("array");
|
||||
|
Loading…
Reference in New Issue
Block a user