Add docs.

This commit is contained in:
Spencer Ofwiti
2021-05-10 21:56:20 +03:00
parent 6ed07b4beb
commit 8db1343bc5
394 changed files with 134975 additions and 44 deletions

View File

@@ -22,26 +22,6 @@ describe('UserService', () => {
expect(service).toBeTruthy();
});
it('should return user for available id', () => {
expect(service.getAccountById(1)).toEqual({
id: 1,
name: 'John Doe',
phone: '+25412345678',
address: '0xc86ff893ac40d3950b4d5f94a9b837258b0a9865',
type: 'user',
created: '08/16/2020',
balance: '12987',
failedPinAttempts: 1,
status: 'approved',
bio: 'Bodaboda',
gender: 'male'
});
});
it('should not return user for unavailable id', () => {
expect(service.getAccountById(9999999999)).toBeUndefined();
});
it('should return action for available id', () => {
expect(service.getActionById('1')).toEqual({
id: 1,

View File

@@ -1,8 +1,12 @@
import { SafePipe } from './safe.pipe';
import {DomSanitizer} from '@angular/platform-browser';
// tslint:disable-next-line:prefer-const
let sanitizer: DomSanitizer;
describe('SafePipe', () => {
it('create an instance', () => {
const pipe = new SafePipe();
const pipe = new SafePipe(sanitizer);
expect(pipe).toBeTruthy();
});
});