UNPKG

is-computer-off

Version:

Want to know if your computer is off? This algorithm is proven to always return the correct result.

19 lines (15 loc) 401 B
/*! * is-computer-off <https://github.com/JPYamamoto/is-computer-off> * * Copyright (c) 2020 Juan Pablo Yamamoto. * Licensed under the MIT license. */ 'use strict'; require('mocha'); var assert = require('assert'); var isComputerOff = require('./'); describe('isComputerOff', function() { it('should return false if the computer is on:', function() { assert(!isComputerOff()); }); });