We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1bef26 commit 9cf5fb4Copy full SHA for 9cf5fb4
1 file changed
src/app/shared/message/message.model.spec.ts
@@ -0,0 +1,23 @@
1
+import {
2
+ beforeEach, beforeEachProviders,
3
+ describe, xdescribe,
4
+ expect, it, xit,
5
+ async, inject
6
+} from '@angular/core/testing';
7
+
8
+import { Message } from './message.model';
9
10
+describe('Model: Message', () => {
11
+ it('should construct without Type, Title nor Description', () => {
12
+ this.model = new Message();
13
+ expect(this.model.type).toBeUndefined();
14
+ expect(this.model.title).toBeUndefined();
15
+ expect(this.model.description).toBeUndefined();
16
+ });
17
+ it('should construct with Type, Title and Description', () => {
18
+ this.model = new Message('success', 'title', 'description');
19
+ expect(this.model.type).toBe('success');
20
+ expect(this.model.title).toBe('title');
21
+ expect(this.model.description).toBe('description');
22
23
+});
0 commit comments