UNPKG
@antv/torch
Version:
latest (1.0.6)
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
torchjs for @antv.
github.com/antvis/tools
antvis/tools
@antv/torch
/
lib
/
notify.js
11 lines
(9 loc)
•
235 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
notifier =
require
(
'node-notifier'
);
module
.
exports
=
errorCount
=>
{
if
(errorCount) { notifier.
notify
({
title
:
'Failed'
,
message
:
`
${errorCount}
${errorCount ===
1
?
'test'
:
'tests'
}
failed.`
}); } };