diff options
author | Ricardo Cino <ricardo@cino.io> | 2022-06-26 14:24:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-26 14:24:06 +0200 |
commit | 070a441fafc173dc286a884739da536903452736 (patch) | |
tree | 5c4aec94cfd36c01f57746bf48f7593be45bdef1 /test | |
parent | 6.0.0-nightly.78 [skip ci] (diff) | |
download | ferdium-app-070a441fafc173dc286a884739da536903452736.tar.gz ferdium-app-070a441fafc173dc286a884739da536903452736.tar.zst ferdium-app-070a441fafc173dc286a884739da536903452736.zip |
fix: solve recipe function calls that were broken cause of js=>ts con… (#369)
* fix: solve recipe function calls that were broken cause of js=>ts conversion
* fix: use an interface instead to keep type-safety
* fix: remove faulty test
Diffstat (limited to 'test')
-rw-r--r-- | test/helpers/array-helpers.test.ts | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/test/helpers/array-helpers.test.ts b/test/helpers/array-helpers.test.ts index e8060c2c4..cbb7822e9 100644 --- a/test/helpers/array-helpers.test.ts +++ b/test/helpers/array-helpers.test.ts | |||
@@ -5,9 +5,6 @@ describe('array_helpers', () => { | |||
5 | const originalArray = ['a', 'b', 'c']; | 5 | const originalArray = ['a', 'b', 'c']; |
6 | const shuffledArray = shuffleArray(originalArray); | 6 | const shuffledArray = shuffleArray(originalArray); |
7 | 7 | ||
8 | // Expect the arrays to not be exactly the same | ||
9 | expect(shuffledArray).not.toEqual(originalArray); | ||
10 | |||
11 | // Expect the arrays to be exactly the same | 8 | // Expect the arrays to be exactly the same |
12 | // when both are sorted alphabetically | 9 | // when both are sorted alphabetically |
13 | expect(shuffledArray.sort()).toEqual(originalArray.sort()); | 10 | expect(shuffledArray.sort()).toEqual(originalArray.sort()); |