angular-cn/public/docs/_examples/testing/ts/app/old-specs/user.spec.ts.not-yet

18 lines
291 B
Plaintext

import {User} from './user';
describe('User', () => {
let user:User;
beforeEach(() => {
user = new User();
});
it('has id === 42', () => {
expect(user.id).toEqual(42);
});
it('has an email address', () => {
expect(user.email.length).toBeGreaterThan(0);
});
});