Skip to content

Commit

Permalink
Add tests to check that the VF.* API still works.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronyeh committed Jul 30, 2021
1 parent ee7bf1c commit 2a9cb86
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 186 deletions.
8 changes: 5 additions & 3 deletions tests/declarations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
* VexFlow - Declarations to interface with ./support/qunit.js
*/

// eslint-disable-next-line
/* eslint-disable */

declare global {
var VF: any;
}
declare const global: any;

export const QUnit = global.QUnit;
Expand All @@ -20,7 +24,6 @@ export const throws = global.throws;

// See: https://api.qunitjs.com/assert/
// TODO: npm install @types/qunit
/* eslint-disable @typescript-eslint/no-explicit-any */
export interface Assert {
test: any;
expect(amount: number): void;
Expand All @@ -45,4 +48,3 @@ export interface Assert {
throws(block: () => void, expected?: any, message?: any): void;
raises(block: () => void, expected?: any, message?: any): void;
}
/* eslint-enable @typescript-eslint/no-explicit-any */
Loading

0 comments on commit 2a9cb86

Please sign in to comment.