瀏覽代碼

Correct expect output of popMany test

ApisNecros 1 年之前
父節點
當前提交
1f3e4c8e07
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/stack.test.js

+ 1 - 1
tests/stack.test.js

@@ -54,7 +54,7 @@ test("Pop a value off the stack", () => {
 
 test("Pop multiple values off the stack", () => {
     const stack = new Stack([42, 15, 20, 43]);
-    expect(stack.popMany(3)).toEqual([15,20,43]);
+    expect(stack.popMany(3)).toEqual([43,20,15]);
 });
 
 test("Shift stack left", () => {