Commit 15743784 authored by David Burke's avatar David Burke

Fix register test

parent 4b885a24
Pipeline #43194007 passed with stage
in 5 minutes and 4 seconds
......@@ -8388,13 +8388,11 @@
},
"balanced-match": {
"version": "1.0.0",
"bundled": true,
"optional": true
"bundled": true
},
"brace-expansion": {
"version": "1.1.11",
"bundled": true,
"optional": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
......@@ -8407,18 +8405,15 @@
},
"code-point-at": {
"version": "1.1.0",
"bundled": true,
"optional": true
"bundled": true
},
"concat-map": {
"version": "0.0.1",
"bundled": true,
"optional": true
"bundled": true
},
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
"optional": true
"bundled": true
},
"core-util-is": {
"version": "1.0.2",
......@@ -8521,8 +8516,7 @@
},
"inherits": {
"version": "2.0.3",
"bundled": true,
"optional": true
"bundled": true
},
"ini": {
"version": "1.3.5",
......@@ -8532,7 +8526,6 @@
"is-fullwidth-code-point": {
"version": "1.0.0",
"bundled": true,
"optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
......@@ -8545,20 +8538,17 @@
"minimatch": {
"version": "3.0.4",
"bundled": true,
"optional": true,
"requires": {
"brace-expansion": "^1.1.7"
}
},
"minimist": {
"version": "0.0.8",
"bundled": true,
"optional": true
"bundled": true
},
"minipass": {
"version": "2.2.4",
"bundled": true,
"optional": true,
"requires": {
"safe-buffer": "^5.1.1",
"yallist": "^3.0.0"
......@@ -8575,7 +8565,6 @@
"mkdirp": {
"version": "0.5.1",
"bundled": true,
"optional": true,
"requires": {
"minimist": "0.0.8"
}
......@@ -8648,8 +8637,7 @@
},
"number-is-nan": {
"version": "1.0.1",
"bundled": true,
"optional": true
"bundled": true
},
"object-assign": {
"version": "4.1.1",
......@@ -8659,7 +8647,6 @@
"once": {
"version": "1.4.0",
"bundled": true,
"optional": true,
"requires": {
"wrappy": "1"
}
......@@ -8765,7 +8752,6 @@
"string-width": {
"version": "1.0.2",
"bundled": true,
"optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
......
......@@ -146,4 +146,4 @@
"version": "5.1.0"
}
}
}
\ No newline at end of file
}
import { HttpClientModule } from "@angular/common/http";
import {
ComponentFixture,
TestBed,
......@@ -6,6 +5,7 @@ import {
fakeAsync
} from "@angular/core/testing";
import { InlineSVGModule } from "ng-inline-svg";
import { HttpClientTestingModule } from "@angular/common/http/testing";
import { ProgressIndicatorModule } from "../../progress-indicator/progress-indicator.module";
import { MoonMail } from "../moonmail/moonmail.service";
import { NgrxFormsModule } from "ngrx-forms";
......@@ -45,7 +45,7 @@ describe("Register Component", () => {
FormsModule,
RouterTestingModule,
InlineSVGModule.forRoot(),
HttpClientModule,
HttpClientTestingModule,
ProgressIndicatorModule,
SharedModule,
StoreModule.forRoot(fromRoot.reducers),
......@@ -169,6 +169,7 @@ describe("Register Component", () => {
"Enter a password for your account."
) !== -1
).toBe(true);
tick();
fixture.destroy();
}));
......@@ -182,6 +183,7 @@ describe("Register Component", () => {
"Password must not be only numbers."
) !== -1
).toBe(true);
tick();
fixture.destroy();
}));
......@@ -195,6 +197,7 @@ describe("Register Component", () => {
"Password must not be email address."
) !== -1
).toBe(true);
tick();
fixture.destroy();
}));
......@@ -209,6 +212,7 @@ describe("Register Component", () => {
expect(
fixture.debugElement.query(By.css('input[type="checkbox"]'))
).toBeTruthy();
tick();
register();
await fixture.whenStable();
skipDownload();
......
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