mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 09:09:01 +00:00
Add ID to error message when missing classes
This commit is contained in:
parent
d7face4261
commit
bc69eec546
1 changed files with 6 additions and 2 deletions
|
|
@ -82,8 +82,12 @@ describe("Maki classes", () => {
|
|||
|
||||
test("All classes are implemented", () => {
|
||||
const getName = Klass => Klass.prototype.getclassname();
|
||||
const actualNames = Object.values(runtime).map(getName);
|
||||
const expectedNames = Object.values(objects).map(obj => obj.name);
|
||||
const actualNames = Object.keys(runtime).map(
|
||||
id => `${getName(runtime[id])} (${id})`
|
||||
);
|
||||
const expectedNames = Object.keys(objects).map(
|
||||
id => `${objects[id].name} (${getFormattedId(id)})`
|
||||
);
|
||||
expect(new Set(actualNames)).toEqual(new Set(expectedNames));
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue