Skip to content

Commit

Permalink
wip: no @glimmer/interfaces ?????
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Nov 2, 2021
1 parent bfcc8a9 commit d899490
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/@glimmer/manager/lib/internal/defaults.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { CAPABILITIES, CapturedArguments as Arguments } from '@glimmer/interfaces';
import { CAPABILITIES } from '@glimmer/interfaces';

import type { CapturedArguments as Arguments } from '@glimmer/interfaces';

type FnArgs<Args extends Arguments = Arguments> =
| [...Args['positional'], Args['named']]
Expand Down
9 changes: 8 additions & 1 deletion packages/@glimmer/manager/test/managers-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,18 @@ module('Managers', () => {
assert.ok(typeof instance === 'object', 'manager is an internal manager');
assert.ok(
typeof instance.getHelper({}) === 'function',
'manager can generatew helper function'
'manager can generate helper function'
);
assert.equal(instance['factory'], factory, 'manager has correct delegate factory');
});

test('it determines the default manager', (assert) => {
let helper = () => 0;
let instance = getInternalHelperManager(helper);

assert.ok(instance, helper as any);
});

test('it works with internal helpers', (assert) => {
let helper = () => {
return UNDEFINED_REFERENCE;
Expand Down

0 comments on commit d899490

Please sign in to comment.