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
|
@ -15,6 +15,10 @@ describe('tray module', () => {
|
|||
});
|
||||
|
||||
describe('new Tray', () => {
|
||||
it('sets the correct class name on the prototype', () => {
|
||||
expect(Tray.prototype.constructor.name).to.equal('Tray');
|
||||
});
|
||||
|
||||
it('throws a descriptive error for a missing file', () => {
|
||||
const badPath = path.resolve('I', 'Do', 'Not', 'Exist');
|
||||
expect(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue