Skip to content

Commit

Permalink
✅ [DASH-154] Canvas: adding test to widgetId
Browse files Browse the repository at this point in the history
  • Loading branch information
Connie committed May 16, 2024
1 parent 726b3ca commit 4bfe34f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Widget.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,11 @@ describe('Widget Tests', () => {

expect(settings.keyTest).to.equal('Test');
});

it('The widget should receive the widget id through the constructor and get accessed through the interface', () => {
const widget = new Widget('testId');
const id = widget.getId();

expect(id).to.equal('testId');
});
});

0 comments on commit 4bfe34f

Please sign in to comment.