From 156101fb833b62c4293c4396b01c90d3b2afd5c4 Mon Sep 17 00:00:00 2001 From: Puru Vijay Date: Thu, 11 Jul 2024 02:24:31 +0530 Subject: [PATCH] Rremove funding, remove logs --- .github/FUNDING.yml | 12 ------------ test/date.test.ts | 1 - test/mutability.test.ts | 10 ++++------ 3 files changed, 4 insertions(+), 19 deletions(-) delete mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index e7dd4fa..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,12 +0,0 @@ -# These are supported funding model platforms - -github: [ljharb] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: npm/traverse -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -custom: # Replace with a single custom sponsorship URL diff --git a/test/date.test.ts b/test/date.test.ts index dcf840b..2774500 100644 --- a/test/date.test.ts +++ b/test/date.test.ts @@ -27,7 +27,6 @@ test('dateMap', function (t) { } }); - console.log(res.x); expect(obj.x).not.toBe(res.x); expect(res).toEqual({ x: obj.x, diff --git a/test/mutability.test.ts b/test/mutability.test.ts index a0f67f2..9dd4f27 100644 --- a/test/mutability.test.ts +++ b/test/mutability.test.ts @@ -44,8 +44,6 @@ test('cloneTypedArray', function (t) { const obj = new Uint8Array([1]); const res = new Traverse(obj).clone(); - console.log(23, obj, res); - expect(Array.from(obj)).toEqual(Array.from(res)); expect(obj).not.toBe(res); @@ -97,7 +95,7 @@ test('remove', function (t) { test('removeNoStop', function (t) { const obj = { a: 1, b: 2, c: { d: 3, e: 4 }, f: 5 }; - const keys = []; + const keys: (PropertyKey | undefined)[] = []; new Traverse(obj).forEach(function () { keys.push(this.key); if (this.key === 'c') { @@ -111,7 +109,7 @@ test('removeNoStop', function (t) { test('removeStop', function (t) { const obj = { a: 1, b: 2, c: { d: 3, e: 4 }, f: 5 }; - const keys = []; + const keys: (PropertyKey | undefined)[] = []; new Traverse(obj).forEach(function () { keys.push(this.key); if (this.key === 'c') { @@ -150,7 +148,7 @@ test('delete', function (t) { test('deleteNoStop', function (t) { const obj = { a: 1, b: 2, c: { d: 3, e: 4 } }; - const keys = []; + const keys: (PropertyKey | undefined)[] = []; new Traverse(obj).forEach(function () { keys.push(this.key); if (this.key === 'c') { @@ -164,7 +162,7 @@ test('deleteNoStop', function (t) { test('deleteStop', function (t) { const obj = { a: 1, b: 2, c: { d: 3, e: 4 } }; - const keys = []; + const keys: (PropertyKey | undefined)[] = []; new Traverse(obj).forEach(function () { keys.push(this.key); if (this.key === 'c') {