Simon Lecoq
a43cb5b322
feat(testing/asserts): improved strings diff ( #948 )
2021-06-24 16:58:35 +09:00
Jesse Jackson
ce65e694b0
feat(testing/asserts): use assertion signature for "assertExists" ( #969 )
2021-06-24 14:46:20 +09:00
Mark Fulton
a4c4dc2c60
fix(testing/asserts): fix handling of Weak* objects ( #951 )
2021-06-07 16:06:29 +09:00
Yusuke Tanaka
81be5faad9
chore: remove ESLint directives ( #941 )
2021-05-30 15:25:01 +09:00
Simon Lecoq
71b6522513
fix(testing): support array values in assertObjectMatch ( #906 )
2021-05-13 17:04:22 +09:00
Simon Lecoq
7e4d6efe24
fix(std/testing): equals does not differentiate undefined/absent keys ( #849 )
2021-04-14 14:50:48 +09:00
Yasser A.Idrissi
1333c6f916
fix(testing): Function signature of assertObjectEquals() does not accept interfaces #741 ( #763 )
...
Co-authored-by: William Perron <hey@wperron.io>
2021-04-05 08:02:59 -04:00
William Perron
69f3d67cb2
chore: remove Promise<void>
return type annotation ( #819 )
...
There's a couple of instances where `Promise<void>` is still there,
those are the exceptions, for example functions that explicitely return
a `Promise` object or functions that return the promise from another
function call without any `await` statement.
used this one-liner to automatically remove everything:
```bash
grep -rli 'promise<void>' | xargs sed -i 's/: Promise<void>//g
```
2021-04-05 07:49:05 -04:00
Yusuke Tanaka
b134d54319
refactor: fix codes to pass no-unused-vars
lint ( #764 )
2021-03-02 15:31:37 +09:00
Simon Lecoq
b35290541d
fix(std/testing) : Handle Symbols correctly in deep equalities ( #731 )
2021-02-16 13:23:39 +01:00
Ryan Dahl
48a2496dbe
update copyright to 2021 ( denoland/deno#9081 )
2021-02-01 10:46:59 +00:00
Nayeem Rahman
a0bfd92db8
fix: Don't use JSDoc syntax for browser-compatibility headers ( denoland/deno#8960 )
2021-02-01 10:46:58 +00:00
William Perron
0ea945721b
docs: add missing jsdoc comments to exported functions ( denoland/deno#8442 )
...
includes:
- http/file_server.ts
- testing/_diff.ts
- testing/asserts.ts
Relates to denoland/deno#7487
2021-02-01 10:46:58 +00:00
Bartek Iwańczuk
57d903a06b
build: migrate to dlint ( denoland/deno#8176 )
...
This commit migrates repository from using "eslint"
to "dlint" for linting JavaScript code.
2021-02-01 10:46:58 +00:00
Yasser A.Idrissi
ee1f8219b7
feat(testing): Add assertExists assertion ( denoland/deno#7874 )
2021-02-01 10:46:58 +00:00
Tim Reichen
55a7adb58e
rename(testing): rename assert*Contains to assert*Includes ( denoland/deno#7951 )
...
This commit renames two assertion functions to better align with JS API:
- assertStringContains -> assertStringIncludes
- assertArrayContains -> assertArrayIncludes
2021-02-01 10:46:58 +00:00
Simon Lecoq
75e51cd223
feat(testing): Add support for object assertion against object subset ( denoland/deno#8001 )
...
This commit add supports for a new assertion function
"assertObjectMatch" which allows to test an actual object
against an expected object subset (i.e. inclusivity, not equality).
2021-02-01 10:46:58 +00:00
tokiedokie
8567b960f8
docs: version all imports in README ( denoland/deno#7442 )
...
Use $STD_VERSION in README files to automatically
display proper version.
2021-02-01 10:46:58 +00:00
Trivikram Kamat
eb1c38cfbf
docs: end sentences with a period in markdown ( denoland/deno#7813 )
2021-02-01 10:46:58 +00:00
tokiedokie
d4dcf633bd
refactor(testing): Get rid of default export and make testing/diff.ts private ( denoland/deno#7592 )
2021-02-01 10:46:58 +00:00
Nayeem Rahman
d80fb379cb
feat(cli/console): Add Deno.InspectOptions::colors ( denoland/deno#7742 )
...
Ref: https://github.com/denoland/deno/pull/7516#pullrequestreview-489567120
2021-02-01 10:46:58 +00:00
David Sherret
99e0dca320
feat(fmt): Sort named import and export specifiers ( denoland/deno#7711 )
2021-02-01 10:46:58 +00:00
tokiedokie
d3fa1bbf5d
chore: add copyright ( denoland/deno#7593 )
2021-02-01 10:46:58 +00:00
Casper Beyer
ec04cb2584
fix(cli/console): always quote and escape inspected strings ( denoland/deno#7546 )
2021-02-01 10:46:58 +00:00
Pig Fang
c08982f09a
fix(testing): assertion diff color ( denoland/deno#7499 )
2021-02-01 10:46:58 +00:00
Christian Petersen
fc70f85d14
fix(testing): invalid dates assertion equality ( denoland/deno#7230 )
2021-02-01 10:46:58 +00:00
xcatliu
2f39e2eb24
feat(testing): add assertNotMatch ( denoland/deno#6775 )
2021-02-01 10:46:58 +00:00
Casper Beyer
521dd0834c
test(testing): reduce bench test iterations to 1e3 ( denoland/deno#7200 )
2021-02-01 10:46:58 +00:00
Kitson Kelly
d47cdf14aa
feat: update to TypeScript 4.0 ( denoland/deno#6514 )
2021-02-01 10:46:58 +00:00
Schwarzkopf Balázs
198851ee64
fix(node): misnamed assert exports ( denoland/deno#7123 )
2021-02-01 10:46:58 +00:00
David Sherret
1425960509
Use dprint for internal formatting ( denoland/deno#6682 )
2021-02-01 10:46:58 +00:00
Rob Waller
e9e789c933
fix(testing): assertThrows inheritance ( denoland/deno#6623 )
2021-02-01 10:46:58 +00:00
Nayeem Rahman
26b0fa530f
feat(Deno.inspect): Add sorted, trailingComma, compact and iterableLimit to InspectOptions ( denoland/deno#6591 )
2021-02-01 10:46:58 +00:00
uki00a
221393d449
fix(tesing/asserts): assertEquals/NotEquals should use milliseconds in Date ( denoland/deno#6644 )
2021-02-01 10:46:58 +00:00
WJH
634fc770a0
improve(asserts): allow assert functions to specify type parameter ( denoland/deno#6413 )
2021-02-01 10:46:58 +00:00
Bartek Iwańczuk
14b9403143
upgrade: swc_ecma_visit, dprint, deno_lint ( denoland/deno#6580 )
2021-02-01 10:46:58 +00:00
Yasser A.Idrissi
dbcef80d97
refactor(testing): Remove unuseful statement ( denoland/deno#6486 )
2021-02-01 10:46:58 +00:00
Casper Beyer
95568a5113
fix(testing) assertArrayContains should work with any array-like ( denoland/deno#6402 )
2021-02-01 10:46:58 +00:00
Rob Waller
f1f31bc965
fix(testing): assertThrows gracefully fails if non-Error thrown ( denoland/deno#6330 )
2021-02-01 10:46:58 +00:00
Vladimir Iakovlev
ac76e3c085
Update assertions names in testing README ( denoland/deno#6318 )
2021-02-01 10:46:58 +00:00
Joel Chippindale
64f0355dfd
Fix assertEqual so that it handles URL objects ( denoland/deno#6278 )
2021-02-01 10:46:58 +00:00
Nayeem Rahman
ccb92613f0
refactor: Don't destructure the Deno namespace ( denoland/deno#6268 )
2021-02-01 10:46:58 +00:00
Szalay Kristóf
6908dc02f4
fix(testing/bench): Make progress callback async ( denoland/deno#6175 )
2021-02-01 10:46:57 +00:00
Casper Beyer
eb9127bf38
Rename abbreviated assertions in testing ( denoland/deno#6118 )
2021-02-01 10:46:57 +00:00
Jon Short
75198c971e
feat(testing): Allow non-void promises in assertThrowsAsync ( denoland/deno#6052 )
2021-02-01 10:46:57 +00:00
Szalay Kristóf
a2608199ae
refactor(testing/bench): Remove differentiating on runs count ( denoland/deno#6084 )
2021-02-01 10:46:57 +00:00
Szalay Kristóf
40b4a97c67
fix(testing/bench): clock assertions without --allow-hrtime ( denoland/deno#6069 )
2021-02-01 10:46:57 +00:00
Szalay Kristóf
b70486f8bd
docs: benchmarking ( denoland/deno#6075 )
2021-02-01 10:46:57 +00:00
Nayeem Rahman
63f4e7a223
fix(testing/asserts): Format values in assertArrayContains() ( denoland/deno#6060 )
2021-02-01 10:46:57 +00:00
Szalay Kristóf
beeaf368df
feat(testing): benching progress callback ( denoland/deno#5941 )
2021-02-01 10:46:57 +00:00