Move utility tests to the right place

This commit is contained in:
Travis Ralston 2021-04-22 20:30:14 -06:00
parent 374f51452e
commit 2c459c4828
8 changed files with 9 additions and 9 deletions

View file

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {Singleflight} from "../src/utils/Singleflight"; import {Singleflight} from "../../src/utils/Singleflight";
describe('Singleflight', () => { describe('Singleflight', () => {
afterEach(() => { afterEach(() => {

View file

@ -25,8 +25,8 @@ import {
arrayUnion, arrayUnion,
ArrayUtil, ArrayUtil,
GroupedArray, GroupedArray,
} from "../src/utils/arrays"; } from "../../src/utils/arrays";
import {objectFromEntries} from "../src/utils/objects"; import {objectFromEntries} from "../../src/utils/objects";
function expectSample(i: number, input: number[], expected: number[]) { function expectSample(i: number, input: number[], expected: number[]) {
console.log(`Resample case index: ${i}`); // for debugging test failures console.log(`Resample case index: ${i}`); // for debugging test failures

View file

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {getEnumValues, isEnumValue} from "../src/utils/enums"; import {getEnumValues, isEnumValue} from "../../src/utils/enums";
enum TestStringEnum { enum TestStringEnum {
First = "__first__", First = "__first__",

View file

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {iterableDiff, iterableUnion} from "../src/utils/iterables"; import {iterableDiff, iterableUnion} from "../../src/utils/iterables";
describe('iterables', () => { describe('iterables', () => {
describe('iterableUnion', () => { describe('iterableUnion', () => {

View file

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {EnhancedMap, mapDiff, mapKeyChanges} from "../src/utils/maps"; import {EnhancedMap, mapDiff, mapKeyChanges} from "../../src/utils/maps";
describe('maps', () => { describe('maps', () => {
describe('mapDiff', () => { describe('mapDiff', () => {

View file

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {clamp, defaultNumber, percentageOf, percentageWithin, sum} from "../src/utils/numbers"; import {clamp, defaultNumber, percentageOf, percentageWithin, sum} from "../../src/utils/numbers";
describe('numbers', () => { describe('numbers', () => {
describe('defaultNumber', () => { describe('defaultNumber', () => {

View file

@ -23,7 +23,7 @@ import {
objectKeyChanges, objectKeyChanges,
objectShallowClone, objectShallowClone,
objectWithOnly, objectWithOnly,
} from "../src/utils/objects"; } from "../../src/utils/objects";
describe('objects', () => { describe('objects', () => {
describe('objectExcluding', () => { describe('objectExcluding', () => {

View file

@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
import {setHasDiff} from "../src/utils/sets"; import {setHasDiff} from "../../src/utils/sets";
describe('sets', () => { describe('sets', () => {
describe('setHasDiff', () => { describe('setHasDiff', () => {