Skip to content

Commit

Permalink
Removed some unused imports, and progress on 'defineProps' module tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
elycruz committed Nov 9, 2023
1 parent 1d8fe7b commit 61cbb82
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/fjl/src/object/defineProp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const
},

/**
* Returns an target and descriptor tuple from given.
* Returns a target and descriptor tuple from given.
*/
toTargetDescriptorTuple = <T>(targetOrTargetDescriptorTuple: T | [T, PropertyDescriptor?]): [T, PropertyDescriptor?] =>
Array.isArray(targetOrTargetDescriptorTuple) ? targetOrTargetDescriptorTuple as [T, PropertyDescriptor?] :
Expand Down
4 changes: 2 additions & 2 deletions packages/fjl/tests/list/test-mapAccumR.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {mapAccumR} from "../../src/list/mapAccumR";
import {expectEqual, vowelsString} from "../helpers";
import {MapAccumOp, mapAccumL, Slice} from "../../src";
import {vowelsString} from "../helpers";
import {MapAccumOp, Slice} from "../../src";

describe('#mapAccumR', () => {
type ZeroT = number | string;
Expand Down
11 changes: 5 additions & 6 deletions packages/fjl/tests/object/index_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ import {
vowelsString
} from '../helpers';

import {Nameable, TypeRef} from '../../src/types';
import {TypeConstructor} from "../../src/types";
import {Nameable, TypeRef, TypeConstructor} from '../../src/types';
import {noop} from "../../src";

const {stringify} = JSON;
Expand Down Expand Up @@ -980,7 +979,7 @@ describe('#object', function () {
});
});

describe('#defineProp', function () {
describe('#defineProp, #$defineProp', function () {
const someTarget = {},
someTarget2 = {},
propName = 'someNum';
Expand Down Expand Up @@ -1029,7 +1028,7 @@ describe('#object', function () {
});
});

describe('#defineEnumProp', function () {
describe('#defineEnumProp, #$defineEnumProp', function () {
const someTarget = {},
someTarget2 = {},
propName = 'someNum';
Expand Down Expand Up @@ -1084,7 +1083,7 @@ describe('#object', function () {
});
});

describe('#defineProps', function () {
describe('#defineProps, #$defineProps', function () {
const
seedArgTuples = [
[String, 'someStringProp'],
Expand Down Expand Up @@ -1202,7 +1201,7 @@ describe('#object', function () {

});

describe('#defineEnumProps', function () {
describe('#defineEnumProps, #$defineEnumProps', function () {
type ArgTuple = [TypeConstructor, string]
const seedArgTuples = [
[String, 'someStringProp'],
Expand Down

0 comments on commit 61cbb82

Please sign in to comment.