Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
fixed: tests after latest merge with updated build system and renamed…
Browse files Browse the repository at this point in the history
… specs
  • Loading branch information
MartijnR committed Jul 20, 2023
1 parent 67076fb commit 4c2d2af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions public/js/src/enketo-webform-oc.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ if (settings.offline) {
const isPreview = settings.type === 'preview';

initTranslator(survey)
.then((props) => {
return connection.getFormParts({
.then((props) =>
connection.getFormParts({
...props,
isPreview,
})
})
)
.then((formParts) => {
if (
location.pathname.indexOf('/edit/') > -1 ||
Expand Down
3 changes: 2 additions & 1 deletion test/client/config/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ module.exports = (config) => {

// list of files / patterns to load in the browser
files: [
{ pattern: 'test/client/**/*.spec.js', type: 'module' },
{
pattern: 'public/js/src/**/*.js',
included: false,
served: true,
type: 'module',
},
// For OC's customizations to be loaded this needs to follow the public/js/src files...
{ pattern: 'test/client/**/*.spec.js', type: 'module' },
{
pattern: 'test/fixtures/**/*.geojson',
included: false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import chai from 'chai';
import { Form } from '../../public/js/src/module/form';
import forms from './forms/forms';
import events from '../../public/js/src/module/event';
import '../../public/js/src/module/form-model';

const { expect } = chai;
const range = document.createRange();

const loadForm = (filename) => {
Expand Down

0 comments on commit 4c2d2af

Please sign in to comment.