diff --git a/platform/import-export/bundle.js b/platform/import-export/bundle.js index a5e5a85127..8446ab27a1 100644 --- a/platform/import-export/bundle.js +++ b/platform/import-export/bundle.js @@ -30,8 +30,8 @@ define([ return function ImportExportPlugin() { return function (openmct) { - ExportAsJSONAction.appliesTo = function (context) { - return openmct.$injector.get('policyService') + ExportAsJSONAction.prototype.appliesTo = function (context) { + return this.openmct.$injector.get('policyService') .allow("creation", context.domainObject.getCapability("type") ); }; diff --git a/platform/import-export/test/actions/ExportAsJSONActionSpec.js b/platform/import-export/test/actions/ExportAsJSONActionSpec.js index 85e9002be7..1c20378892 100644 --- a/platform/import-export/test/actions/ExportAsJSONActionSpec.js +++ b/platform/import-export/test/actions/ExportAsJSONActionSpec.js @@ -29,7 +29,7 @@ define( ], function (ExportAsJSONAction, domainObjectFactory, MCT, AdapterCapability) { - xdescribe("The export JSON action", function () { + describe("The export JSON action", function () { var context, action, @@ -102,7 +102,7 @@ define( expect(action).toBeDefined(); }); - it("doesn't export non-creatable objects in tree", function () { + xit("doesn't export non-creatable objects in tree", function () { var nonCreatableType = { hasFeature: function (feature) { @@ -149,7 +149,7 @@ define( }); }); - it("can export self-containing objects", function () { + xit("can export self-containing objects", function () { var parent = domainObjectFactory({ name: 'parent', model: { @@ -191,7 +191,7 @@ define( }); }); - it("exports links to external objects as new objects", function () { + xit("exports links to external objects as new objects", function () { var parent = domainObjectFactory({ name: 'parent', model: { diff --git a/platform/import-export/test/actions/ImportAsJSONActionSpec.js b/platform/import-export/test/actions/ImportAsJSONActionSpec.js index 717032b9ea..4e5d6acd6e 100644 --- a/platform/import-export/test/actions/ImportAsJSONActionSpec.js +++ b/platform/import-export/test/actions/ImportAsJSONActionSpec.js @@ -27,7 +27,7 @@ define( ], function (ImportAsJSONAction, domainObjectFactory) { - xdescribe("The import JSON action", function () { + describe("The import JSON action", function () { var context = {}; var action, @@ -146,7 +146,7 @@ define( }); }); - it("can import self-containing objects", function () { + xit("can import self-containing objects", function () { var compDomainObject = domainObjectFactory({ name: 'compObject', model: { name: 'compObject'}, @@ -198,7 +198,7 @@ define( }); }); - it("assigns new ids to each imported object", function () { + xit("assigns new ids to each imported object", function () { dialogService.getUserInput.and.returnValue(Promise.resolve( { selectFile: {