diff options
author | Scott Bell <scott@traclabs.com> | 2022-09-30 18:17:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 18:17:02 +0300 |
commit | 2bdac5650527ba077b2a228e87ec5a02d1d86007 (patch) | |
tree | 675d3404ccbda42e99f59ca14bc4766f2c11bd65 /src | |
parent | 35c42ba43de5f1ee5348d686e8fd4d498ec42d00 (diff) |
Replace app.js with webpack-dev-server (#5797)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/performanceIndicator/pluginSpec.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/performanceIndicator/pluginSpec.js b/src/plugins/performanceIndicator/pluginSpec.js index edeff1add..a6c672512 100644 --- a/src/plugins/performanceIndicator/pluginSpec.js +++ b/src/plugins/performanceIndicator/pluginSpec.js @@ -57,8 +57,9 @@ describe('the plugin', () => { it('calculates an fps value', async () => { await loopForABit(); - // eslint-disable-next-line - expect(parseInt(performanceIndicator.text().split(' fps')[0])).toBeGreaterThan(0); + // eslint-disable-next-line radix + const fps = parseInt(performanceIndicator.text().split(' fps')[0]); + expect(fps).toBeGreaterThan(0); }); function loopForABit() { @@ -66,7 +67,7 @@ describe('the plugin', () => { return new Promise(resolve => { requestAnimationFrame(function loop() { - if (++frames === 240) { + if (++frames > 90) { resolve(); } else { requestAnimationFrame(loop); |