Skip to content

Commit 49a33e6

Browse files
committed
fixup! fix(@angular/build): Add custom middleware for to present an Angular-tailored message
1 parent 8e56cbb commit 49a33e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/angular/build/src/builders/dev-server/tests/options/allowed-hosts_spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describeServeBuilder(executeDevServer, DEV_SERVER_BUILDER_INFO, (harness, setupT
3434

3535
expect(result?.success).toBeTrue();
3636
expect(response?.statusCode).toBe(403);
37-
expect(response && text(response)).toContain('angular.json');
37+
expect(response && (await text(response))).toContain('angular.json');
3838
});
3939

4040
it('does not allow an invalid host when option is an empty array', async () => {
@@ -49,7 +49,7 @@ describeServeBuilder(executeDevServer, DEV_SERVER_BUILDER_INFO, (harness, setupT
4949

5050
expect(result?.success).toBeTrue();
5151
expect(response?.statusCode).toBe(403);
52-
expect(response && text(response)).toContain('angular.json');
52+
expect(response && (await text(response))).toContain('angular.json');
5353
});
5454

5555
it('allows a host when specified in the option', async () => {

0 commit comments

Comments
 (0)