From 9cfb16476458f0cade63d9c8086a0b4122e1e3c7 Mon Sep 17 00:00:00 2001 From: Alisue Date: Sat, 26 Aug 2023 17:47:27 +0900 Subject: [PATCH] Fix invalid tests Because of #482, `nodes` are not modified thus we must use the return value in step-by-step tests --- test/fern/internal/node.vimspec | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/fern/internal/node.vimspec b/test/fern/internal/node.vimspec index f5176e5..6ed8b43 100644 --- a/test/fern/internal/node.vimspec +++ b/test/fern/internal/node.vimspec @@ -395,7 +395,7 @@ Describe fern#internal#node \]) let [r, e] = Promise.wait( - \ fern#internal#node#reveal(['deep', 'alpha'], nodes, provider, Comparator, token), + \ fern#internal#node#reveal(['deep', 'alpha'], r, provider, Comparator, token), \ { 'timeout': TIMEOUT }, \) Assert Equals(e, v:null) @@ -410,7 +410,7 @@ Describe fern#internal#node \]) let [r, e] = Promise.wait( - \ fern#internal#node#reveal(['deep', 'alpha', 'beta'], nodes, provider, Comparator, token), + \ fern#internal#node#reveal(['deep', 'alpha', 'beta'], r, provider, Comparator, token), \ { 'timeout': TIMEOUT }, \) Assert Equals(e, v:null) @@ -426,7 +426,7 @@ Describe fern#internal#node \]) let [r, e] = Promise.wait( - \ fern#internal#node#reveal(['deep', 'alpha', 'beta', 'gamma'], nodes, provider, Comparator, token), + \ fern#internal#node#reveal(['deep', 'alpha', 'beta', 'gamma'], r, provider, Comparator, token), \ { 'timeout': TIMEOUT }, \) Assert Equals(e, v:null) @@ -442,7 +442,7 @@ Describe fern#internal#node \]) let [r, e] = Promise.wait( - \ fern#internal#node#reveal(['deep', 'alpha', 'beta', 'gamma', 'UNKNOWN'], nodes, provider, Comparator, token), + \ fern#internal#node#reveal(['deep', 'alpha', 'beta', 'gamma', 'UNKNOWN'], r, provider, Comparator, token), \ { 'timeout': TIMEOUT }, \) Assert Equals(e, v:null) @@ -492,7 +492,7 @@ Describe fern#internal#node \]) let [r, e] = Promise.wait( - \ fern#internal#node#reveal(['deep', 'alpha'], nodes, provider, Comparator, token), + \ fern#internal#node#reveal(['deep', 'alpha'], r, provider, Comparator, token), \ { 'timeout': TIMEOUT }, \) Assert Equals(e, v:null) @@ -507,7 +507,7 @@ Describe fern#internal#node \]) let [r, e] = Promise.wait( - \ fern#internal#node#reveal(['deep', 'alpha', 'beta'], nodes, provider, Comparator, token), + \ fern#internal#node#reveal(['deep', 'alpha', 'beta'], r, provider, Comparator, token), \ { 'timeout': TIMEOUT }, \) Assert Equals(e, v:null) @@ -523,7 +523,7 @@ Describe fern#internal#node \]) let [r, e] = Promise.wait( - \ fern#internal#node#reveal(['deep', 'alpha', 'beta', 'gamma'], nodes, provider, Comparator, token), + \ fern#internal#node#reveal(['deep', 'alpha', 'beta', 'gamma'], r, provider, Comparator, token), \ { 'timeout': TIMEOUT }, \) Assert Equals(e, v:null) @@ -539,7 +539,7 @@ Describe fern#internal#node \]) let [r, e] = Promise.wait( - \ fern#internal#node#reveal(['deep', 'alpha', 'beta', 'gamma', 'UNKNOWN'], nodes, provider, Comparator, token), + \ fern#internal#node#reveal(['deep', 'alpha', 'beta', 'gamma', 'UNKNOWN'], r, provider, Comparator, token), \ { 'timeout': TIMEOUT }, \) Assert Equals(e, v:null)