use v6;

use Test;

use lib 'lib';

# Methods to test
my @methods = 'on', 'on_suspend', 'on_resume', 'on_ac', 'on_battery';

plan @methods.elems + 1;

use Atom::Electron::PowerMonitor;
ok 1, "'use Atom::Electron::PowerMonitor' worked!";

for @methods -> $method {
  ok Atom::Electron::PowerMonitor.can($method), "PowerMonitor.$method is found";
}

Add missing test from previous commit
Add missing test from previous commit
