Skip to content

Commit

Permalink
chore: move fixtures into src
Browse files Browse the repository at this point in the history
  • Loading branch information
b-ma committed Jul 8, 2024
1 parent af69930 commit 5b5196f
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
1 change: 1 addition & 0 deletions apps/metronome/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"@ircam/sc-components": "^3.0.0-alpha.66",
"@ircam/sc-loader": "^1.0.0",
"@ircam/sc-scheduling": "^1.0.0",
"@ircam/soap-score": "^1.1.0",
"lit": "^3.1.4"
},
"name": "metronome"
Expand Down
2 changes: 1 addition & 1 deletion src/components/SoapScoreExamples.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { html, LitElement, css } from 'lit';
import * as fixtures from '../../tests/fixtures.js';
import * as fixtures from '../utils/fixtures.js';

import '@ircam/sc-components/sc-select.js';
// import '@ircam/sc-components/sc-text.js'
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/parser-augustin.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { assert } from 'chai';

import augustin2soap from '../src/parsers/augustin2soap.js';
import { writeScore } from '../src/soap-score-writer.js';
// import { writeScore } from '../src/utils/soap-score-writer.js';
import { parseScore } from '../src/soap-score-parser.js';

describe('soap.parse.augustin2soap', () => {
Expand Down
6 changes: 4 additions & 2 deletions tests/parser-midi.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { assert } from 'chai';

import midi2soap from '../src/parsers/midi2soap.js';
import { writeScore } from '../src/soap-score-writer.js';
// import { writeScore } from '../src/soap-score-writer.js';
import { parseScore } from '../src/soap-score-parser.js';

describe('soap.parse.midi2soap', () => {
Expand Down Expand Up @@ -108,6 +108,7 @@ BAR 3 "section B" \
//console.log(outputScore);
assert.deepEqual(outputData, expectedData);
});

it('## Example 2', () => {
const input = [
{ deltaTime: 0, type: 255, metaType: 88, data: [ 4, 2, 24, 8 ] },
Expand All @@ -125,7 +126,8 @@ BAR 1 [4/4] TEMPO [1/4]=120 "To Flute"
//console.log(outputScore);
assert.deepEqual(outputData, expectedData);
});
it.only('## Example 3', () => {

it('## Example 3', () => {
const input = [
{ deltaTime: 0, type: 255, metaType: 88, data: [ 4, 2, 24, 8 ] },
{ deltaTime: 0, type: 255, metaType: 81, data: 500000 },
Expand Down
3 changes: 1 addition & 2 deletions tests/soap-score-parser.spec.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { assert } from 'chai';

import { parseScore } from '../src/soap-score-parser.js';

import * as fixtures from './fixtures.js';
import * as fixtures from '../src/utils/fixtures.js';

describe(`> soap.parseScore(score)`, () => {
describe('# Basics', () => {
Expand Down
3 changes: 1 addition & 2 deletions tests/soap-score-writer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { assert } from 'chai';

import { parseScore } from '../src/soap-score-parser.js';
import { writeScore } from '../src/soap-score-writer.js';

import * as fixtures from './fixtures.js';
import * as fixtures from '../src/utils/fixtures.js';

describe('soap.writeScore', () => {
describe('# Basics', () => {
Expand Down
3 changes: 1 addition & 2 deletions tests/writer-asco.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { assert } from 'chai';
import soap2asco from '../src/parsers/soap2asco.js';
import { writeScore } from '../src/soap-score-writer.js';
import { parseScore } from '../src/soap-score-parser.js';

import * as fixtures from './fixtures.js';
import * as fixtures from '../src/utils/fixtures.js';

describe('soap.writeScore', () => {
describe('# Basics', () => {
Expand Down

0 comments on commit 5b5196f

Please sign in to comment.