We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4ac3a7 commit 1fe6cb4Copy full SHA for 1fe6cb4
packages/angular_devkit/build_angular/src/dev-server/hmr_spec.ts
@@ -97,13 +97,13 @@ describe('Dev Server Builder HMR', () => {
97
expect(logs).toContain(`[HMR] css reload %s ${url}styles.css`);
98
expect(logs).toContain('[HMR] App is up to date.');
99
100
- const pTag = await page.evaluate(() => {
+ const pTagColor = await page.evaluate(() => {
101
const el = document.querySelector('p');
102
103
- return JSON.parse(JSON.stringify(getComputedStyle(el)));
+ return getComputedStyle(el).color;
104
});
105
106
- expect(pTag.color).toBe('rgb(255, 255, 0)');
+ expect(pTagColor).toBe('rgb(255, 255, 0)');
107
break;
108
}
109
0 commit comments