Skip to content

Commit

Permalink
Merge branch 'THR-18-dev-feature-h5p-editor' of https://github.com/hp…
Browse files Browse the repository at this point in the history
…i-schul-cloud/schulcloud-server into THR-18-dev-feature-h5p-editor
  • Loading branch information
MajedAlaitwniCap committed Nov 2, 2023
2 parents a2c55f6 + 2e74ac8 commit f7db077
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { IContentMetadata } from '@lumieducation/h5p-server/build/src/types';
import { H5PContentMetadata } from './h5p-editor.response';

describe('H5PContentMetadata', () => {
let h5pContentMetadata: H5PContentMetadata;

beforeEach(() => {
const testContentMetadata: IContentMetadata = {
embedTypes: ['iframe'],
language: 'en',
mainLibrary: 'testLibrary',
preloadedDependencies: [
{ machineName: 'Dependency1', majorVersion: 1, minorVersion: 0 },
{ machineName: 'Dependency2', majorVersion: 2, minorVersion: 0 },
],
defaultLanguage: '',
license: '',
title: '',
};
h5pContentMetadata = new H5PContentMetadata(testContentMetadata);
});

it('should be defined', () => {
expect(h5pContentMetadata).toBeDefined();
});
});

0 comments on commit f7db077

Please sign in to comment.