From 3bd3986f4e1e659b4ec5e13a67d48306b7e6b7ef Mon Sep 17 00:00:00 2001 From: Dan Freeman Date: Thu, 7 Mar 2024 18:40:45 +0100 Subject: [PATCH] Expose `ComponentSpec` and `HelperSpec` as public imports (#57) * Expose `ComponentSpec` and `HelperSpec` as public imports * Bump version --- addon/index.js | 2 ++ package.json | 2 +- tests/unit/build-spec-processor-test.js | 3 +-- tests/unit/helper-spec-test.js | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/addon/index.js b/addon/index.js index 34e14c2..ad20a29 100644 --- a/addon/index.js +++ b/addon/index.js @@ -1 +1,3 @@ export { wrap, unwrap } from 'ember-exclaim/-private/environment'; +export { default as ComponentSpec } from 'ember-exclaim/-private/component-spec'; +export { default as HelperSpec } from 'ember-exclaim/-private/helper-spec'; diff --git a/package.json b/package.json index e066aa8..0d97efe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ember-exclaim", - "version": "1.3.2", + "version": "1.4.0", "description": "An addon allowing apps to expose declarative, JSON-configurable custom UIs backed by Ember components", "keywords": [ "ember-addon" diff --git a/tests/unit/build-spec-processor-test.js b/tests/unit/build-spec-processor-test.js index 79081fb..fa74206 100644 --- a/tests/unit/build-spec-processor-test.js +++ b/tests/unit/build-spec-processor-test.js @@ -1,8 +1,7 @@ import { module, test } from 'qunit'; import buildSpecProcessor from 'ember-exclaim/-private/build-spec-processor'; import Binding from 'ember-exclaim/-private/binding'; -import ComponentSpec from 'ember-exclaim/-private/component-spec'; -import HelperSpec from 'ember-exclaim/-private/helper-spec'; +import { ComponentSpec, HelperSpec } from 'ember-exclaim'; module('Unit | build-spec-processor', function () { test('processing valid config', function (assert) { diff --git a/tests/unit/helper-spec-test.js b/tests/unit/helper-spec-test.js index 9f3b915..265193a 100644 --- a/tests/unit/helper-spec-test.js +++ b/tests/unit/helper-spec-test.js @@ -1,6 +1,6 @@ import { module, test } from 'qunit'; import Binding from 'ember-exclaim/-private/binding'; -import HelperSpec from 'ember-exclaim/-private/helper-spec'; +import { HelperSpec } from 'ember-exclaim'; module('Unit | helper-spec');