Skip to content

Commit

Permalink
Moved test files
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisn committed May 25, 2024
1 parent 54a8f64 commit 1e8f00f
Show file tree
Hide file tree
Showing 33 changed files with 113 additions and 116 deletions.
3 changes: 0 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
bower_components
node_modules

test
test_data
2 changes: 1 addition & 1 deletion karma.conf.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = function(config) {

// list of files / patterns to load in the browser
files: [
{ pattern: 'test_data/*', included: false },
{ pattern: 'test/data/*', included: false },
{ pattern: 'test/tests.js', type: 'module', included: true }
],

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"test": "karma start karma.conf.cjs",
"test-watch": "npm test -- --auto-watch --no-single-run",
"build-demo": "cd demo/custom-markers && rollup -c",
"copy-demo-files": "copyfiles --up 1 test_data/sample.mp3 test_data/07023003.mp3 test_data/07023003-2channel.dat demo",
"copy-demo-files": "copyfiles --up 1 test/data/sample.mp3 test/data/07023003.mp3 test/data/07023003-2channel.dat demo",
"prestart": "npm run build && npm run build-demo && npm run copy-demo-files",
"start": "serve --listen 8080 --no-clipboard --no-request-logging demo",
"prepack": "npm run build"
Expand Down
6 changes: 3 additions & 3 deletions test/api-player-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('Player', function() {
},
mediaElement: document.getElementById('media'),
dataUri: {
json: 'base/test_data/sample.json'
json: 'base/test/data/sample.json'
},
logger: logger,
player: player
Expand Down Expand Up @@ -213,7 +213,7 @@ describe('Player', function() {
},
mediaElement: document.getElementById('media'),
dataUri: {
json: 'base/test_data/sample.json'
json: 'base/test/data/sample.json'
},
logger: logger
};
Expand Down Expand Up @@ -373,7 +373,7 @@ describe('Player', function() {
},
mediaElement: document.getElementById('media'),
dataUri: {
json: 'base/test_data/sample.json'
json: 'base/test/data/sample.json'
},
player: player
};
Expand Down
2 changes: 1 addition & 1 deletion test/api-points-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('Peaks.points', function() {
},
mediaElement: document.getElementById('media'),
dataUri: {
arraybuffer: '/base/test_data/sample.dat'
arraybuffer: '/base/test/data/sample.dat'
}
};

Expand Down
2 changes: 1 addition & 1 deletion test/api-segments-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('Peaks.segments', function() {
},
mediaElement: document.getElementById('media'),
dataUri: {
arraybuffer: 'base/test_data/sample.dat'
arraybuffer: 'base/test/data/sample.dat'
},
logger: logger
};
Expand Down
Loading

0 comments on commit 1e8f00f

Please sign in to comment.