Skip to content

Commit

Permalink
chore: remove unused tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gierschv committed Jan 12, 2024
1 parent 9f99b8f commit 05eb96f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 58 deletions.
2 changes: 0 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
var process = require('process');

module.exports = function (config) {
var configuration = {
frameworks: ['mocha'],
Expand Down
57 changes: 1 addition & 56 deletions test/integration/embed-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -1317,63 +1317,8 @@ describe('Integration - Embed', () => {
// Then
Object.entries(embedConfig).forEach(([key, expectedValue]) => {
const actualValue = embedConfig[key];
assert.deepStrictEqual(actualValue, expectedValue);
assert.deepEqual(actualValue, expectedValue);
});
});
});

// describe('Editor config', () => {
// it('should fetch the viewer config', (done) => {
// var container = document.createElement('div');
// document.body.appendChild(container);

// var embed = new Flat.Embed(container, {
// score: PUBLIC_SCORE,
// baseUrl: BASE_URL,
// embedParams: {
// appId: APP_ID,
// controlsFloating: false,
// branding: false
// }
// });

// embed.getEmbedConfig().then((config) => {
// assert.equal(config.branding, false);
// assert.equal(config.controlsPlay, true);
// assert.equal(config.controlsFloating, false);
// container.parentNode.removeChild(container);
// done();
// });
// });

// it('should use the edit mode and set a tools config', (done) => {
// var container = document.createElement('div');
// document.body.appendChild(container);

// var embed = new Flat.Embed(container, {
// baseUrl: BASE_URL,
// embedParams: {
// appId: APP_ID,
// mode: 'edit',
// controlsFloating: false,
// branding: false
// }
// });

// embed.setEditorConfig({
// noteMode: {
// durations: true,
// tuplet: false
// },
// articulationMode: false
// }).then((config) => {
// assert.ok(config.global);
// assert.equal(config.articulationMode, false);
// assert.equal(config.noteMode.durations, true);
// assert.equal(config.noteMode.tuplet, false);
// container.parentNode.removeChild(container);
// done();
// }).catch(done);
// });
// });
});

0 comments on commit 05eb96f

Please sign in to comment.