fix: set prototype names on gin::Constructible
classes (#39006)
* fix: set prototype names on gin::Constructible classes * test: add tests
This commit is contained in:
parent
56b5c00312
commit
c7bdd907d7
23 changed files with 71 additions and 15 deletions
|
@ -11,6 +11,10 @@ import { setTimeout } from 'node:timers/promises';
|
|||
const fixturesPath = path.resolve(__dirname, 'fixtures');
|
||||
|
||||
describe('Menu module', function () {
|
||||
it('sets the correct class name on the prototype', () => {
|
||||
expect(Menu.prototype.constructor.name).to.equal('Menu');
|
||||
});
|
||||
|
||||
describe('Menu.buildFromTemplate', () => {
|
||||
it('should be able to attach extra fields', () => {
|
||||
const menu = Menu.buildFromTemplate([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue