Skip to content

Commit

Permalink
Rename declarations.ts to qunit_api.ts.
Browse files Browse the repository at this point in the history
Update comments.
Fix import.
  • Loading branch information
ronyeh committed Aug 21, 2021
1 parent 8b3d065 commit f7c683c
Show file tree
Hide file tree
Showing 65 changed files with 75 additions and 70 deletions.
2 changes: 1 addition & 1 deletion tests/accidental_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok, equal, test } from './declarations';
import { QUnit, ok, equal, test } from './support/qunit_api';
import { Flow } from 'flow';
import { Beam } from 'beam';
import { Formatter } from 'formatter';
Expand Down
2 changes: 1 addition & 1 deletion tests/annotation_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok } from './declarations';
import { QUnit, ok } from './support/qunit_api';
import { ContextBuilder } from 'renderer';
import { Flow } from 'flow';
import { Registry } from 'registry';
Expand Down
2 changes: 1 addition & 1 deletion tests/articulation_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { StaveNote } from 'stavenote';
import { TabNote } from 'tabnote';
import { TabStave } from 'tabstave';
import { Voice } from 'voice';
import { expect, ok, QUnit } from './declarations';
import { expect, ok, QUnit } from './support/qunit_api';
import { TestOptions, VexFlowTests } from './vexflow_test_helpers';

const ArticulationTests = {
Expand Down
2 changes: 1 addition & 1 deletion tests/auto_beam_formatting_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions, concat } from './vexflow_test_helpers';
import { QUnit, equal, ok } from './declarations';
import { QUnit, equal, ok } from './support/qunit_api';
import { Stem } from 'stem';
import { Fraction } from 'fraction';
import { Beam } from 'beam';
Expand Down
2 changes: 1 addition & 1 deletion tests/bach_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions, concat } from './vexflow_test_helpers';
import { QUnit, ok } from './declarations';
import { QUnit, ok } from './support/qunit_api';
import { Factory } from 'factory';
import { Registry } from 'registry';
import { BarlineType } from 'stavebarline';
Expand Down
2 changes: 1 addition & 1 deletion tests/barline_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok, Assert, equal } from './declarations';
import { QUnit, ok, Assert, equal } from './support/qunit_api';
import { Barline, BarlineType } from 'stavebarline';

const BarlineTests = {
Expand Down
2 changes: 1 addition & 1 deletion tests/beam_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions, concat } from './vexflow_test_helpers';
import { QUnit, equal, ok, test } from './declarations';
import { QUnit, equal, ok, test } from './support/qunit_api';
import { Beam } from 'beam';
import { Stem } from 'stem';
import { Voice } from 'voice';
Expand Down
2 changes: 1 addition & 1 deletion tests/bend_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok } from './declarations';
import { QUnit, ok } from './support/qunit_api';
import { ContextBuilder } from 'renderer';
import { Bend, BendPhrase } from 'bend';
import { Formatter } from 'formatter';
Expand Down
2 changes: 1 addition & 1 deletion tests/boundingbox_tests.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// [VexFlow](http://vexflow.com) - Copyright (c) Mohit Muthanna 2010.
// MIT License

import { QUnit, test, equal } from './declarations';
import { QUnit, test, equal } from './support/qunit_api';
import { BoundingBox } from 'boundingbox';

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/boundingboxcomputation_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// BoundingBoxComputation Tests

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok, test, equal } from './declarations';
import { QUnit, ok, test, equal } from './support/qunit_api';
import { RenderContext } from 'types/common';
import { OutlineCode } from 'glyph';

Expand Down
5 changes: 1 addition & 4 deletions tests/chordsymbol_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok } from './declarations';

import { VexFlowTests } from './vexflow_test_helpers';
import { ok, QUnit } from './declarations';
import { QUnit, ok } from './support/qunit_api';
import { ChordSymbol } from 'chordsymbol';
import { StaveNote } from 'stavenote';
import { Formatter } from 'formatter';
Expand Down
2 changes: 1 addition & 1 deletion tests/clef_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok } from './declarations';
import { QUnit, ok } from './support/qunit_api';

const ClefTests = {
Start(): void {
Expand Down
2 changes: 1 addition & 1 deletion tests/curve_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, concat, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok } from './declarations';
import { QUnit, ok } from './support/qunit_api';
import { Curve } from 'curve';
import { StaveNote } from 'stavenote';
import { Factory } from 'factory';
Expand Down
2 changes: 1 addition & 1 deletion tests/dot_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok } from './declarations';
import { QUnit, ok } from './support/qunit_api';
import { ModifierContext } from 'modifiercontext';
import { TickContext } from 'tickcontext';
import { ContextBuilder } from 'renderer';
Expand Down
2 changes: 1 addition & 1 deletion tests/easyscore_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// EasyScore Tests

import { QUnit, expect, Assert } from './declarations';
import { QUnit, expect, Assert } from './support/qunit_api';
import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { EasyScore } from 'easyscore';
import { StaveNote } from 'stavenote';
Expand Down
2 changes: 1 addition & 1 deletion tests/factory_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests } from './vexflow_test_helpers';
import { QUnit, equal, expect, test } from './declarations';
import { QUnit, equal, expect, test } from './support/qunit_api';
import { Barline } from 'stavebarline';
import { Factory } from 'factory';

Expand Down
2 changes: 1 addition & 1 deletion tests/formatter_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { TestOptions, VexFlowTests } from './vexflow_test_helpers';
import { QUnit, ok, equal, test, propEqual, notEqual } from './declarations';
import { QUnit, ok, equal, test, propEqual, notEqual } from './support/qunit_api';
import { Flow } from 'flow';
import { MockTickable } from './mocks';
import { Formatter } from 'formatter';
Expand Down
2 changes: 1 addition & 1 deletion tests/fraction_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
strictEqual,
test,
equal,
} from './declarations';
} from './support/qunit_api';
import { Fraction } from 'fraction';

const FractionTests = {
Expand Down
2 changes: 1 addition & 1 deletion tests/ghostnote_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests } from './vexflow_test_helpers';
import { QUnit, ok } from './declarations';
import { QUnit, ok } from './support/qunit_api';

function createTest(setup: any) {
return function (options: any) {
Expand Down
2 changes: 1 addition & 1 deletion tests/glyphnote_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { ok, QUnit } from './declarations';
import { ok, QUnit } from './support/qunit_api';
import { Registry } from 'registry';
import { Glyph } from 'glyph';
import { ChordSymbol } from 'chordsymbol';
Expand Down
2 changes: 1 addition & 1 deletion tests/gracenote_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok } from './declarations';
import { QUnit, ok } from './support/qunit_api';
import { Formatter } from 'formatter';

const stem_test_util = {
Expand Down
2 changes: 1 addition & 1 deletion tests/gracetabnote_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok } from './declarations';
import { QUnit, ok } from './support/qunit_api';
import { ContextBuilder } from 'renderer';
import { Flow } from 'flow';
import { GraceNoteGroup } from 'gracenotegroup';
Expand Down
2 changes: 1 addition & 1 deletion tests/key_clef_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// TODO: How is this different from keysignature_tests.ts?

import { VexFlowTests, TestOptions, MAJOR_KEYS, MINOR_KEYS } from './vexflow_test_helpers';
import { QUnit, ok, expect, equal, test } from './declarations';
import { QUnit, ok, expect, equal, test } from './support/qunit_api';
import { ContextBuilder } from 'renderer';
import { Flow } from 'flow';
import { Stave } from 'stave';
Expand Down
2 changes: 1 addition & 1 deletion tests/keymanager_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// Music Key Management Tests

import { QUnit, test, equal } from './declarations';
import { QUnit, test, equal } from './support/qunit_api';
import { KeyManager } from 'keymanager';

const KeyManagerTests = {
Expand Down
2 changes: 1 addition & 1 deletion tests/keysignature_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions, MAJOR_KEYS, MINOR_KEYS } from './vexflow_test_helpers';
import { QUnit, ok, equal, test, expect } from './declarations';
import { QUnit, ok, equal, test, expect } from './support/qunit_api';
import { ContextBuilder } from 'renderer';
import { Flow } from 'flow';
import { Stave } from 'stave';
Expand Down
2 changes: 1 addition & 1 deletion tests/modifier_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { Modifier } from 'modifier';
import { ModifierContext } from 'modifiercontext';
import { QUnit, test, equal } from './declarations';
import { QUnit, test, equal } from './support/qunit_api';

/**
* ModifierContext Tests
Expand Down
2 changes: 1 addition & 1 deletion tests/multimeasurerest_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok } from './declarations';
import { QUnit, ok } from './support/qunit_api';

const MultiMeasureRestTests = {
Start(): void {
Expand Down
2 changes: 1 addition & 1 deletion tests/music_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { Music } from 'music';
import { KeyManager } from 'keymanager';
import { QUnit, ok, test, expect, equal } from './declarations';
import { QUnit, ok, test, expect, equal } from './support/qunit_api';

const MusicTests = {
Start(): void {
Expand Down
2 changes: 1 addition & 1 deletion tests/notehead_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok } from './declarations';
import { QUnit, ok } from './support/qunit_api';
import { Flow } from 'flow';
import { Stave } from 'stave';
import { StaveNote } from 'stavenote';
Expand Down
2 changes: 1 addition & 1 deletion tests/notesubgroup_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok } from './declarations';
import { QUnit, ok } from './support/qunit_api';
import { Barline, BarlineType } from 'stavebarline';
import { BarNote } from 'barnote';
import { StaveNote } from 'stavenote';
Expand Down
2 changes: 1 addition & 1 deletion tests/ornament_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// @ts-nocheck

import { TestOptions, VexFlowTests } from './vexflow_test_helpers';
import { expect, QUnit } from './declarations';
import { expect, QUnit } from './support/qunit_api';
import { ContextBuilder } from 'renderer';
import { Formatter } from 'formatter';
import { StaveNote } from 'stavenote';
Expand Down
2 changes: 1 addition & 1 deletion tests/parser_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { Parser, Result } from 'parser';
import { Assert, equal, QUnit, test } from './declarations';
import { Assert, equal, QUnit, test } from './support/qunit_api';

const TestGrammar = function () {
return {
Expand Down
2 changes: 1 addition & 1 deletion tests/pedalmarking_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests } from './vexflow_test_helpers';
import { QUnit, ok } from './declarations';
import { QUnit, ok } from './support/qunit_api';

function createTest(makePedal) {
return function (options) {
Expand Down
2 changes: 1 addition & 1 deletion tests/percussion_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok } from './declarations';
import { QUnit, ok } from './support/qunit_api';
import { ContextBuilder } from 'renderer';
import { Factory } from 'factory';
import { StaveNote } from 'stavenote';
Expand Down
2 changes: 1 addition & 1 deletion tests/registry_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// Registry Tests

import { Assert, QUnit, test } from './declarations';
import { Assert, QUnit, test } from './support/qunit_api';
import { Factory } from 'factory';
import { EasyScore } from 'easyscore';
import { Registry } from 'registry';
Expand Down
2 changes: 1 addition & 1 deletion tests/rests_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* eslint-disable */
// @ts-nocheck

import { QUnit, ok } from './declarations';
import { QUnit, ok } from './support/qunit_api';
import { TestOptions, VexFlowTests } from './vexflow_test_helpers';
import { RenderContext } from 'types/common';
import { Flow } from 'flow';
Expand Down
2 changes: 1 addition & 1 deletion tests/rhythm_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok, expect } from './declarations';
import { QUnit, ok, expect } from './support/qunit_api';
import { StaveNoteTests } from './stavenote_tests';
import { ContextBuilder } from 'renderer';
import { Formatter } from 'formatter';
Expand Down
2 changes: 1 addition & 1 deletion tests/stave_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, expect, ok, test, equal } from './declarations';
import { QUnit, expect, ok, test, equal } from './support/qunit_api';
import { ContextBuilder } from 'renderer';
import { Clef } from 'clef';
import { Formatter } from 'formatter';
Expand Down
2 changes: 1 addition & 1 deletion tests/staveconnector_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok, test, equal } from './declarations';
import { QUnit, ok, test, equal } from './support/qunit_api';
import { ContextBuilder } from 'renderer';
import { StaveConnector } from 'staveconnector';
import { Stave } from 'stave';
Expand Down
2 changes: 1 addition & 1 deletion tests/stavehairpin_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok } from './declarations';
import { QUnit, ok } from './support/qunit_api';
import { StaveHairpin } from 'stavehairpin';

function drawHairpin(from, to, stave, ctx, type, position, options?) {
Expand Down
2 changes: 1 addition & 1 deletion tests/staveline_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// @ts-nocheck

import { VexFlowTests } from './vexflow_test_helpers';
import { QUnit } from './declarations';
import { QUnit } from './support/qunit_api';

/**
* StaveLine Tests
Expand Down
2 changes: 1 addition & 1 deletion tests/stavemodifier_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests } from './vexflow_test_helpers';
import { equal, ok, QUnit } from './declarations';
import { equal, ok, QUnit } from './support/qunit_api';
import { Stave } from 'stave';
import { Barline } from 'stavebarline';
import { StaveModifier } from 'stavemodifier';
Expand Down
2 changes: 1 addition & 1 deletion tests/stavenote_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { TestOptions, VexFlowTests } from './vexflow_test_helpers';
import { Vex } from 'vex';
import { Flow } from 'flow';
import { QUnit, ok, test, throws, equal, expect, deepEqual } from './declarations';
import { QUnit, ok, test, throws, equal, expect, deepEqual } from './support/qunit_api';
import { ContextBuilder } from 'renderer';
import { Stave } from 'stave';
import { StaveNote, StaveNoteStruct } from 'stavenote';
Expand Down
2 changes: 1 addition & 1 deletion tests/stavetie_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @ts-nocheck

import { VexFlowTests, TestOptions } from './vexflow_test_helpers';
import { QUnit, ok } from './declarations';
import { QUnit, ok } from './support/qunit_api';
import { Stem } from 'stem';
import { BuilderOptions } from 'easyscore';
import { Factory } from 'factory';
Expand Down
Loading

0 comments on commit f7c683c

Please sign in to comment.