From 5681b99e4dec226602e5398073e828f66fc942cd Mon Sep 17 00:00:00 2001 From: Ryan Cebulko Date: Mon, 22 Feb 2021 14:39:48 -0500 Subject: [PATCH] Rename `pure-assert.js` to `assert.js` --- extensions/amp-accordion/1.0/base-element.js | 2 +- extensions/amp-selector/1.0/base-element.js | 2 +- src/{pure-assert.js => assert.js} | 0 src/log.js | 2 +- src/utils/date.js | 2 +- test/unit/test-pure-assert.js | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename src/{pure-assert.js => assert.js} (100%) diff --git a/extensions/amp-accordion/1.0/base-element.js b/extensions/amp-accordion/1.0/base-element.js index a038088ad028f..1b1ef6be89d59 100644 --- a/extensions/amp-accordion/1.0/base-element.js +++ b/extensions/amp-accordion/1.0/base-element.js @@ -23,7 +23,7 @@ import { } from './component'; import {PreactBaseElement} from '../../../src/preact/base-element'; import {childElementsByTag, toggleAttribute} from '../../../src/dom'; -import {pureDevAssert as devAssert} from '../../../src/pure-assert'; +import {pureDevAssert as devAssert} from '../../../src/assert'; import {dict, memo} from '../../../src/utils/object'; import {forwardRef} from '../../../src/preact/compat'; import {toArray} from '../../../src/types'; diff --git a/extensions/amp-selector/1.0/base-element.js b/extensions/amp-selector/1.0/base-element.js index d38136fdbe716..c48c22088ea80 100644 --- a/extensions/amp-selector/1.0/base-element.js +++ b/extensions/amp-selector/1.0/base-element.js @@ -23,7 +23,7 @@ import { toggleAttribute, tryFocus, } from '../../../src/dom'; -import {pureDevAssert as devAssert} from '../../../src/pure-assert'; +import {pureDevAssert as devAssert} from '../../../src/assert'; import {dict} from '../../../src/utils/object'; import {toArray} from '../../../src/types'; import {useCallback, useLayoutEffect, useRef} from '../../../src/preact'; diff --git a/src/pure-assert.js b/src/assert.js similarity index 100% rename from src/pure-assert.js rename to src/assert.js diff --git a/src/log.js b/src/log.js index 06901f67ae89d..4ba8716eafb53 100644 --- a/src/log.js +++ b/src/log.js @@ -14,7 +14,7 @@ * limitations under the License. */ -import {USER_ERROR_SENTINEL} from './pure-assert'; +import {USER_ERROR_SENTINEL} from './assert'; import {getMode} from './mode'; import {internalRuntimeVersion} from './internal-version'; import {isArray, isEnumValue} from './types'; diff --git a/src/utils/date.js b/src/utils/date.js index 4addb9a562bd2..0b864d23cae89 100644 --- a/src/utils/date.js +++ b/src/utils/date.js @@ -17,7 +17,7 @@ import { pureDevAssert as devAssert, pureUserAssert as userAssert, -} from '../pure-assert'; +} from '../assert'; /** * Parses the date using the `Date.parse()` rules. Additionally supports the diff --git a/test/unit/test-pure-assert.js b/test/unit/test-pure-assert.js index 21ea2c19a6fc7..ddfeb8926191a 100644 --- a/test/unit/test-pure-assert.js +++ b/test/unit/test-pure-assert.js @@ -18,7 +18,7 @@ import { USER_ERROR_SENTINEL, pureDevAssert as devAssert, pureUserAssert as userAssert, -} from '../../src/pure-assert'; +} from '../../src/assert'; describe('assertions', () => { describe('devAssert', () => {