Revert "Merge branch 'issue/14' into 'master'"

This reverts merge request !10
parent f6200228
Pipeline #9858 passed with stage
in 2 minutes and 18 seconds
......@@ -27,7 +27,7 @@ import { View } from "./view";
import { engineScenario } from "../../test/scenario";
describe("engine class", () => {
const engine = Engine.getInstance();
const engine = new Engine();
const met = engineScenario.metrics;
const dim = engineScenario.dimensions;
......
......@@ -25,21 +25,11 @@ import { Query } from "../common/query";
import { RelationType } from "../common/types";
export class Engine {
private static instance: Engine;
private views: View[] = [];
private metrics: Metric[] = [];
private dimensions: Dimension[] = [];
private constructor () { }
public static getInstance(): Engine {
if (this.instance == null) {
this.instance = new Engine();
}
return this.instance;
}
constructor () { }
public getViews() {
return this.views;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment