UNPKG
ohayolibs
Version:
latest (1.0.1)
1.0.1
1.0.0
Ohayo is a set of essential modules for ohayojp.
ohayolibs
/
packages
/
util
/
src
/
logger
/
logger.spec.ts
13 lines
(11 loc)
•
272 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{ warn }
from
'./logger'
;
describe
(
'util.logger'
,
() =>
{
beforeEach
(
() =>
{
spyOn
(
console
,
'warn'
); });
it
(
'should be once warn when same content'
,
() =>
{
warn
(
'once'
);
warn
(
'once'
);
expect
(
console
.
warn
).
toHaveBeenCalledTimes
(
1
); }); });