feat: Write integration test for users.

This commit is contained in:
Ahmed Bouhuolia
2020-05-25 12:02:38 +02:00
parent 5369b3661a
commit d7e4694dfa
6 changed files with 303 additions and 17 deletions

View File

@@ -1,8 +1,10 @@
import { Model } from 'objection';
import { Model, mixin } from 'objection';
import bcrypt from 'bcryptjs';
import SystemModel from '@/system/models/SystemModel';
import DateSession from '@/models/DateSession';
export default class SystemUser extends SystemModel {
export default class SystemUser extends mixin(SystemModel, [DateSession]) {
/**
* Table name.
*/