Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/integration/controllers/AuthController.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
/* global describe, it */

const assert = require('assert');
const app = require('../../../index');

describe('AuthController', () => {
it('should exist', () => {
assert(global.app.api.controllers['AuthController']);
assert(app.api.controllers['AuthController']);
});
});
3 changes: 2 additions & 1 deletion test/integration/controllers/CategoryController.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
'use strict'

const assert = require('assert')
const app = require('../../../index');

describe('CategoryController', () => {
it('should exist', () => {
assert(global.app.controllers.CategoryController)
assert(app.api.controllers.CategoryController)
})
})
3 changes: 2 additions & 1 deletion test/integration/controllers/UserController.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
/* global describe, it */

const assert = require('assert');
const app = require('../../../index');

describe('UserController', () => {
it('should exist', () => {
assert(global.app.api.controllers['UserController']);
assert(app.api.controllers['UserController']);
});
});
3 changes: 2 additions & 1 deletion test/integration/policies/Auth.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
/* global describe, it */

const assert = require('assert');
const app = require('../../../index');

describe('Auth', () => {
it('should exist', () => {
assert(global.app.api.policies['Auth']);
assert(app.api.policies['Auth']);
});
});
3 changes: 2 additions & 1 deletion test/unit/models/Candidate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
/* global describe, it */

const assert = require('assert');
const app = require('../../../index');

describe('Candidate Model', () => {
it('should exist', () => {
assert(global.app.api.models['Candidate']);
assert(app.api.models['Candidate']);
});
});
3 changes: 2 additions & 1 deletion test/unit/models/Category.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
'use strict'

const assert = require('assert')
const app = require('../../../index');

describe('Category Model', () => {
it('should exist', () => {
assert(global.app.models.Category)
assert(app.api.models.Category)
})
})
3 changes: 2 additions & 1 deletion test/unit/models/Office.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
/* global describe, it */

const assert = require('assert');
const app = require('../../../index');

describe('Office Model', () => {
it('should exist', () => {
assert(global.app.api.models['Office']);
assert(app.api.models['Office']);
});
});
3 changes: 2 additions & 1 deletion test/unit/models/Question.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
/* global describe, it */

const assert = require('assert');
const app = require('../../../index');

describe('Question Model', () => {
it('should exist', () => {
assert(global.app.api.models['Question']);
assert(app.api.models['Question']);
});
});
3 changes: 2 additions & 1 deletion test/unit/models/Region.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
/* global describe, it */

const assert = require('assert');
const app = require('../../../index');

describe('Region Model', () => {
it('should exist', () => {
assert(global.app.api.models['Region']);
assert(app.api.models['Region']);
});
});
3 changes: 2 additions & 1 deletion test/unit/models/Role.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
/* global describe, it */

const assert = require('assert');
const app = require('../../../index');

describe('Role Model', () => {
it('should exist', () => {
assert(global.app.api.models['Role']);
assert(app.api.models['Role']);
});
});
3 changes: 2 additions & 1 deletion test/unit/models/Survey.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
/* global describe, it */

const assert = require('assert');
const app = require('../../../index');

describe('Survey Model', () => {
it('should exist', () => {
assert(global.app.api.models['Survey']);
assert(app.api.models['Survey']);
});
});
3 changes: 2 additions & 1 deletion test/unit/models/SurveyResult.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
/* global describe, it */

const assert = require('assert');
const app = require('../../../index');

describe('SurveyResult Model', () => {
it('should exist', () => {
assert(global.app.api.models['SurveyResult']);
assert(app.api.models['SurveyResult']);
});
});
3 changes: 2 additions & 1 deletion test/unit/models/SurveyResultAnswer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
/* global describe, it */

const assert = require('assert');
const app = require('../../../index');

describe('SurveyResultAnswer Model', () => {
it('should exist', () => {
assert(global.app.api.models['SurveyResultAnswer']);
assert(app.api.models['SurveyResultAnswer']);
});
});
3 changes: 2 additions & 1 deletion test/unit/models/SurveyResultCategory.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
'use strict'

const assert = require('assert')
const app = require('../../../index');

describe('SurveyResultCategory Model', () => {
it('should exist', () => {
assert(global.app.models.SurveyResultCategory)
assert(app.api.models.SurveyResultCategory)
})
})
3 changes: 2 additions & 1 deletion test/unit/models/User.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
/* global describe, it */

const assert = require('assert');
const app = require('../../../index');

describe('User Model', () => {
it('should exist', () => {
assert(global.app.api.models['User']);
assert(app.api.models['User']);
});
});
3 changes: 2 additions & 1 deletion test/unit/services/AuthService.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
/* global describe, it */

const assert = require('assert');
const app = require('../../../index');

describe('AuthService', () => {
it('should exist', () => {
assert(global.app.api.services['AuthService']);
assert(app.api.services['AuthService']);
});
});
3 changes: 2 additions & 1 deletion test/unit/services/CategoryService.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
'use strict'

const assert = require('assert')
const app = require('../../../index');

describe('CategoryService', () => {
it('should exist', () => {
assert(global.app.services.CategoryService)
assert(app.api.services.CategoryService)
})
})
3 changes: 2 additions & 1 deletion test/unit/services/UserService.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
/* global describe, it */

const assert = require('assert');
const app = require('../../../index');

describe('UserService', () => {
it('should exist', () => {
assert(global.app.api.services['UserService']);
assert(app.api.services['UserService']);
});
});