Skip to content

Commit

Permalink
Update verify_wrapper.js for kb-macro.active introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
tshino committed Nov 22, 2022
1 parent f16fbff commit c1f378a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generator/verify_wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const unwrapCommon = function(keybinding) {
delete keybinding.args;
}
}
keybinding.when = removeWhenContext(keybinding.when, 'kb-macro.recording');
keybinding.when = removeWhenContext(keybinding.when, 'kb-macro.active');
return keybinding;
};
const unwrapForWindows = function(keybinding) {
Expand Down Expand Up @@ -251,8 +251,8 @@ async function verifyWrapper() {

for (const wrapper of wrappers) {
assert.ok(
containsWhenContext(wrapper.when, 'kb-macro.recording'),
'"when" in a wrapper should contain "kb-macro.recording &&" context'
containsWhenContext(wrapper.when, 'kb-macro.active'),
'"when" in a wrapper should contain "kb-macro.active &&" context'
);
if (isWrapped(wrapper)) {
assert.strictEqual(
Expand Down

0 comments on commit c1f378a

Please sign in to comment.