Skip to content

Commit

Permalink
[Squash] nit
Browse files Browse the repository at this point in the history
Co-authored-by: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
jasnell and targos committed Mar 29, 2021
1 parent e590e78 commit f62dc00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/parallel/test-requestanimationframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
const common = require('../common');
const { strictEqual } = require('assert');

let called = false;

requestAnimationFrame(common.mustCall((ts) => {
called = true;
strictEqual(typeof ts, 'number');
}));

// Make sure the callback is called asynchronously.
strictEqual(called, false);

0 comments on commit f62dc00

Please sign in to comment.