Skip to content

Commit

Permalink
test(autocompletion): verify completion for spaced variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Jun 18, 2024
1 parent e54357a commit bf3fcc7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/spec/autocompletion/builtins.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,28 @@ describe('autocompletion - builtins', function() {
expect(info.querySelector('pre')).to.exist;

});

});


it('should complete with space (<get or else>)', function() {

const context = createContext('get', [
{
name: 'get or else',
type: 'function',
params: [
{ name: 'value' },
{ name: 'default' }
]
}
]);

// when
const autoCompletion = completions(context);

// then
expect(autoCompletion).to.exist;
});


Expand Down

0 comments on commit bf3fcc7

Please sign in to comment.