Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
renanccastro committed Mar 13, 2024
1 parent af68cc3 commit 57e8d87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/models/system.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import child_process from 'child_process';
import cp from 'child_process';
import fs from 'fs';
import { Meteor } from 'meteor/meteor';
import sinon from 'sinon';
Expand Down Expand Up @@ -37,7 +37,7 @@ if (releaseParts[0] >= 1 && releaseParts[1] > 8 ) {
*/
sinon.stub(process, 'platform').value('darwin');

sinon.replace(child_process, 'exec', (a, callback) => {
sinon.replace(cp, 'exec', (a, callback) => {
callback(null,
`Mach Virtual Memory Statistics: (page size of 16384 bytes)
Pages free: 3293.
Expand Down Expand Up @@ -142,7 +142,7 @@ Tinytest.addAsync(
* MAC OS
*/
sinon.stub(process, 'platform').value('darwin');
sinon.replace(child_process, 'exec', (a, callback) => {
sinon.replace(cp, 'exec', (a, callback) => {
callback(/* error */ true,null);
});
await model.getFreeMemory();
Expand Down

0 comments on commit 57e8d87

Please sign in to comment.