refactor: add server side helpers.js

This commit is contained in:
Barış Soner Uşaklı
2022-02-25 09:59:33 -05:00
parent eb8d07b3a6
commit 57a64b7809
3 changed files with 9 additions and 3 deletions

View File

@@ -2,10 +2,9 @@
const nconf = require('nconf');
const assert = require('assert');
const benchpress = require('benchpressjs');
const db = require('./mocks/databasemock');
const helpers = require('../public/src/modules/helpers.common')(require('../src/utils'), benchpress, nconf.get('relative_path'));
const helpers = require('../src/helpers');
describe('helpers', () => {
it('should return false if item doesn\'t exist', (done) => {