mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2026-03-13 15:21:15 +08:00
Complying with JavaScript Standard Style (npx standard --fix).
This commit is contained in:
@@ -4,7 +4,7 @@ describe('MinPriorityQueue', () => {
|
||||
const values = [5, 2, 4, 1, 7, 6, 3, 8]
|
||||
const capacity = values.length
|
||||
|
||||
const Queue = new MinPriorityQueue(capacity);
|
||||
const Queue = new MinPriorityQueue(capacity)
|
||||
|
||||
values.forEach(v => Queue.insert(v))
|
||||
|
||||
@@ -12,7 +12,7 @@ describe('MinPriorityQueue', () => {
|
||||
const mockFn = jest.fn()
|
||||
Queue.print(mockFn)
|
||||
|
||||
expect(mockFn.mock.calls.length).toBe(1) // Expect one call
|
||||
expect(mockFn.mock.calls.length).toBe(1) // Expect one call
|
||||
expect(mockFn.mock.calls[0].length).toBe(1) // Expect one argument
|
||||
|
||||
const heap = mockFn.mock.calls[0][0]
|
||||
|
||||
Reference in New Issue
Block a user