We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e260ad commit 05d92c6Copy full SHA for 05d92c6
packages/base-manager/test/src/manager_test.ts
@@ -152,6 +152,18 @@ describe('ManagerBase', function () {
152
});
153
154
155
+ describe('has_model', function () {
156
+ it('returns true when the model is registered', async function () {
157
+ const manager = this.managerBase;
158
+ const model = await manager.new_model(this.modelOptions);
159
+ expect(manager.has_model(model.model_id)).to.be.true;
160
+ });
161
+
162
+ it('returns false when the model is not registered', function () {
163
+ expect(this.managerBase.has_model('not-defined')).to.be.false;
164
165
166
167
describe('handle_comm_open', function () {
168
it('returns a promise to a model', async function () {
169
const manager = this.managerBase;
0 commit comments