mirror of
https://github.com/SamEyeBam/animate.git
synced 2025-09-28 15:05:25 +00:00
larry babby and threejs for glsl
This commit is contained in:
19
webGl/my-threejs-test/node_modules/@parcel/workers/test/cpuCount.test.js
generated
vendored
Normal file
19
webGl/my-threejs-test/node_modules/@parcel/workers/test/cpuCount.test.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
import assert from 'assert';
|
||||
import os from 'os';
|
||||
|
||||
import getCores, {detectRealCores} from '../src/cpuCount';
|
||||
|
||||
describe('cpuCount', function () {
|
||||
it('Should be able to detect real cpu count', () => {
|
||||
// Windows not supported as getting the cpu count takes a couple seconds...
|
||||
if (os.platform() === 'win32') return;
|
||||
|
||||
let cores = detectRealCores();
|
||||
assert(cores > 0);
|
||||
});
|
||||
|
||||
it('getCores should return more than 0', () => {
|
||||
let cores = getCores(true);
|
||||
assert(cores > 0);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user