Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nasa/openmct.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Bell <scott@traclabs.com>2022-09-30 18:17:02 +0300
committerGitHub <noreply@github.com>2022-09-30 18:17:02 +0300
commit2bdac5650527ba077b2a228e87ec5a02d1d86007 (patch)
tree675d3404ccbda42e99f59ca14bc4766f2c11bd65 /src
parent35c42ba43de5f1ee5348d686e8fd4d498ec42d00 (diff)
Replace app.js with webpack-dev-server (#5797)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/performanceIndicator/pluginSpec.js7
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);