Skip to content

Commit e391ee8

Browse files
committed
Update utilites.class.test.js move the params around for Logger
1 parent b3a1855 commit e391ee8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/lib/utilites.class.test.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Utility from "../../src/lib/utilities.class.js"
1+
import Utility, { LoggerType } from "../../src/lib/utilities.class.js"
22

33
test('isEmpty of an empty Array', () => {
44
expect(
@@ -51,16 +51,20 @@ test('Not isEmpty of not an empty Object', () => {
5151

5252
test('Logger test', () => {
5353
const spyOn = jest.spyOn(console, 'log')
54-
Utility.Logger(false, "Info", "Running Test on localhost")
54+
Utility.Logger("Running Test on localhost", "Info", false)
5555
expect(
5656
spyOn
5757
).not.toHaveBeenCalled()
5858
})
5959

6060
test('Logger test', () => {
6161
const spyOn = jest.spyOn(console, 'log')
62-
Utility.Logger(true, "Info", "Running Test on localhost")
62+
Utility.Logger("Running Test on localhost", "Info")
6363
expect(
6464
spyOn
65-
).toHaveBeenCalledWith("Info: Running Test on localhost")
65+
).toHaveBeenCalledWith("Info:", "Running Test on localhost")
6666
})
67+
68+
test('LoggerType.empty', () => {
69+
expect(LoggerType.empty).toStrictEqual("")
70+
})

0 commit comments

Comments
 (0)