We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94842ba commit b761c5aCopy full SHA for b761c5a
packages/core/test/lib/scope.test.ts
@@ -331,7 +331,15 @@ describe('Scope', () => {
331
it('notifies scope listeners after deletion', () => {
332
const scope = new Scope();
333
const listener = vi.fn();
334
+
335
scope.addScopeListener(listener);
336
+ scope.setAttribute('str', { type: 'string', value: 'b' });
337
+ expect(listener).toHaveBeenCalledTimes(1);
338
339
+ listener.mockClear();
340
341
+ scope.removeAttribute('str');
342
343
});
344
345
it('does nothing if the attribute does not exist', () => {
0 commit comments