all files / tests/mock/ users_repo.mock.ts

66.67% Statements 8/12
100% Branches 0/0
16.67% Functions 1/6
60% Lines 6/10
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27            1×     1×             1×       1×       1× 1×  
/* Copyright CloudLinux Zug GmbH 2010-2017 All Rights Reserved
 *
 * Licensed under CLOUD LINUX LICENSE AGREEMENT
 * http://cloudlinux.com/docs/LICENSE.TXT
 */
 
import { Injectable } from '@angular/core';
 
@Injectable()
export class UsersRepoMock {
 
    private command: string  = 'cloudlinux-limits';
    private testMode: boolean = false;
 
    constructor() {}
 
    public getAllUsers() {
        return new Promise((resolve, reject) => {});
    }
 
    public getUser(user_id: number) {
        return null;
    }
 
    public saveUser(user_id: number, params: {}) { }
}