Commit 5dac10bb authored by Alex's avatar Alex

added UserTokenService spec

parent aa85bd1a
Pipeline #497 passed with stages
in 4 minutes and 59 seconds
import { UserTokenService } from './user-token.service';
import { UserToken } from './user-token';
describe('UserTokenService', () => {
let service: UserTokenService;
beforeEach(() => {
service = new UserTokenService();
});
describe('generate', () => {
it('should return UserToken', () => {
const fakeUser = {
email: 'fake@localh.ost',
password: '123456',
verify: async (password: string) => true,
};
expect(service.generate(fakeUser)).resolves.toBeInstanceOf(UserToken);
});
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment