You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2020/07/26 23:54:20 UTC
[incubator-annotator] 09/09: Remove default exports
This is an automated email from the ASF dual-hosted git repository.
randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit 5c3c9dce96b6ce6e26bfd46d4592fb8d4bc61929
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Fri Jul 24 18:31:05 2020 -0700
Remove default exports
---
packages/dom/test/text-quote/describe-cases.ts | 4 +---
packages/dom/test/text-quote/describe.test.ts | 4 ++--
packages/dom/test/text-quote/match-cases.ts | 4 +---
packages/dom/test/text-quote/match.test.ts | 2 +-
4 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/packages/dom/test/text-quote/describe-cases.ts b/packages/dom/test/text-quote/describe-cases.ts
index 77d3f25..7d43a5f 100644
--- a/packages/dom/test/text-quote/describe-cases.ts
+++ b/packages/dom/test/text-quote/describe-cases.ts
@@ -22,7 +22,7 @@ import type { TextQuoteSelector } from '@annotator/selector';
import { RangeInfo } from '../utils';
-const testCases: {
+export const testCases: {
[name: string]: {
html: string;
range: RangeInfo;
@@ -135,5 +135,3 @@ const testCases: {
},
},
};
-
-export default testCases;
diff --git a/packages/dom/test/text-quote/describe.test.ts b/packages/dom/test/text-quote/describe.test.ts
index 3fdf8f8..9219147 100644
--- a/packages/dom/test/text-quote/describe.test.ts
+++ b/packages/dom/test/text-quote/describe.test.ts
@@ -23,8 +23,8 @@ import { assert } from 'chai';
import { describeTextQuote } from '../../src/text-quote/describe';
import { hydrateRange, evaluateXPath } from '../utils';
-import testCases from './describe-cases';
-import testMatchCases from './match-cases';
+import { testCases } from './describe-cases';
+import { testCases as testMatchCases } from './match-cases';
const domParser = new window.DOMParser();
diff --git a/packages/dom/test/text-quote/match-cases.ts b/packages/dom/test/text-quote/match-cases.ts
index 2b1b60b..099802c 100644
--- a/packages/dom/test/text-quote/match-cases.ts
+++ b/packages/dom/test/text-quote/match-cases.ts
@@ -22,7 +22,7 @@ import type { TextQuoteSelector } from '@annotator/selector';
import { RangeInfo } from '../utils';
-const testCases: {
+export const testCases: {
[name: string]: {
html: string;
selector: TextQuoteSelector;
@@ -361,5 +361,3 @@ const testCases: {
expected: [],
},
};
-
-export default testCases;
diff --git a/packages/dom/test/text-quote/match.test.ts b/packages/dom/test/text-quote/match.test.ts
index 235c046..f892132 100644
--- a/packages/dom/test/text-quote/match.test.ts
+++ b/packages/dom/test/text-quote/match.test.ts
@@ -25,7 +25,7 @@ import { createTextQuoteSelectorMatcher } from '../../src/text-quote/match';
import { DomScope } from '../../src/types';
import { evaluateXPath, RangeInfo } from '../utils';
-import testCases from './match-cases';
+import { testCases } from './match-cases';
const domParser = new window.DOMParser();