Skip to content

Commit

Permalink
chore: make enigma mocker properly internal (#1047)
Browse files Browse the repository at this point in the history
* chore: make enigma mocker properly internal

* chore: update test
  • Loading branch information
Caele committed Jan 12, 2023
1 parent 31771ff commit 310f764
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
1 change: 0 additions & 1 deletion apis/enigma-mocker/index.js

This file was deleted.

22 changes: 1 addition & 21 deletions apis/enigma-mocker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,7 @@
"name": "@nebula.js/enigma-mocker",
"version": "3.1.0-alpha.3",
"private": true,
"description": "",
"license": "MIT",
"author": "QlikTech International AB",
"keywords": [],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/qlik-oss/nebula.js.git",
"directory": "apis/enigma-mocker"
},
"main": "index.js",
"files": [
"dist"
],
"scripts": {
"build": "cross-env NODE_ENV=production rollup --config ../../rollup.config.js",
"build:dev": "rollup --config ../../rollup.config.js",
"prepublishOnly": "rm -rf dist && yarn run build"
},
"main": "src/index.js",
"devDependencies": {
"extend": "3.0.2"
}
Expand Down
4 changes: 2 additions & 2 deletions test/mashup/visualize/scenarios.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ scenarios.destroy = {
},
};

const { useElement, useLayout, embed } = window.stardust;
const { useElement, useLayout, embed, EnigmaMocker } = window.stardust;

const chart = {
qae: {
Expand Down Expand Up @@ -585,7 +585,7 @@ function getScenario() {

async function render() {
const scenario = getScenario();
const app = await window.enigmaMocker.fromGenericObjects([scenario.genericObject], scenario.options);
const app = await EnigmaMocker.fromGenericObjects([scenario.genericObject], scenario.options);
const element = document.querySelector('.viz');
const viz = await configuration(app).render({ element, id: 'bb8' });

Expand Down

0 comments on commit 310f764

Please sign in to comment.