Comparison

spec/util_promise_spec.lua @ 11727:f3aee8a825cc

Fix various spelling errors (thanks codespell) Also special thanks to timeless, for wordlessly reminding me to check for typos.
author Kim Alvefur <zash@zash.se>
date Tue, 27 Jul 2021 00:13:18 +0200
parent 11486:78d843faaffc
child 11947:073e53b72792
comparison
equal deleted inserted replaced
11726:76156c675456 11727:f3aee8a825cc
15 assert.equal("foo", v); 15 assert.equal("foo", v);
16 end); 16 end);
17 p:next(cb); 17 p:next(cb);
18 assert.spy(cb).was_called(1); 18 assert.spy(cb).was_called(1);
19 end); 19 end);
20 it("notifies on fulfilment of pending promises", function () 20 it("notifies on fulfillment of pending promises", function ()
21 local r; 21 local r;
22 local p = promise.new(function (resolve) 22 local p = promise.new(function (resolve)
23 r = resolve; 23 r = resolve;
24 end); 24 end);
25 local cb = spy.new(function (v) 25 local cb = spy.new(function (v)