1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-27 16:10:57 -05:00
Commit graph

72 commits

Author SHA1 Message Date
Tim Reichen
ae86cbb551
rename(std/testing): rename assert*Contains to assert*Includes (#7951)
This commit renames two assertion functions to better align with JS API:
- assertStringContains -> assertStringIncludes
- assertArrayContains -> assertArrayIncludes
2020-10-26 16:03:30 +01:00
Simon Lecoq
23df1c563e
feat(std/testing): Add support for object assertion against object subset (#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).
2020-10-21 18:53:27 +02:00
tokiedokie
3d65177dbc
docs(std): version all imports in README (#7442)
Use $STD_VERSION in std/ README files to automatically
display proper version.
2020-10-04 14:18:36 +02:00
Trivikram Kamat
d0eb179132
docs: end sentences with a period in markdown (#7813) 2020-10-04 07:19:11 +11:00
tokiedokie
5590b97670
refactor(std/testing): Get rid of default export and make std/testing/diff.ts private (#7592) 2020-10-01 19:15:05 +02:00
Nayeem Rahman
27ee4b2551
feat(cli/console): Add Deno.InspectOptions::colors (#7742)
Ref: https://github.com/denoland/deno/pull/7516#pullrequestreview-489567120
2020-09-30 12:59:50 +10:00
David Sherret
df02e31507
feat(fmt): Sort named import and export specifiers (#7711) 2020-09-27 12:22:32 +02:00
tokiedokie
c4ed3fb7e7
chore: add copyright (#7593) 2020-09-21 08:26:41 -04:00
Casper Beyer
38196f7850
fix(cli/console): always quote and escape inspected strings (#7546) 2020-09-18 09:28:30 -04:00
Pig Fang
aa657d6493
fix(std/testing): assertion diff color (#7499) 2020-09-16 12:42:51 +02:00
Christian Petersen
84086e7d32
fix(std/testing): invalid dates assertion equality (#7230) 2020-08-28 19:59:28 -04:00
xcatliu
6b95b25000
feat(std/testing): add assertNotMatch (#6775) 2020-08-27 11:03:15 +02:00
Casper Beyer
80111e57e6
test(std/testing): reduce bench test iterations to 1e3 (#7200) 2020-08-26 20:36:20 +02:00
Kitson Kelly
c4d5b01acf
feat: update to TypeScript 4.0 (#6514) 2020-08-24 19:43:54 -04:00
Schwarzkopf Balázs
87b1b8c461
fix(std/node): misnamed assert exports (#7123) 2020-08-20 11:56:31 -04:00
David Sherret
cde4dbb351
Use dprint for internal formatting (#6682) 2020-07-14 15:24:17 -04:00
Rob Waller
9eca71caa1
fix(std/testing): assertThrows inheritance (#6623) 2020-07-14 14:41:05 -04:00
Nayeem Rahman
5ec41cbcc2
feat(Deno.inspect): Add sorted, trailingComma, compact and iterableLimit to InspectOptions (#6591) 2020-07-11 00:52:18 -04:00
uki00a
63b81f97cf
fix(std/tesing/asserts): assertEquals/NotEquals should use milliseconds in Date (#6644) 2020-07-05 22:21:03 -04:00
WJH
538504f57c
improve(std/asserts): allow assert functions to specify type parameter (#6413) 2020-07-02 18:03:15 +02:00
Bartek Iwańczuk
851344f2ed
upgrade: swc_ecma_visit, dprint, deno_lint (#6580) 2020-07-01 16:04:56 +02:00
Yasser A.Idrissi
d1b44e7521
refactor(std/testing): Remove unuseful statement (#6486) 2020-06-25 22:17:58 -04:00
Casper Beyer
f318ab01a4
fix(std/testing) assertArrayContains should work with any array-like (#6402) 2020-06-24 08:29:50 -04:00
Rob Waller
d615f0ff82
fix(std/testing): assertThrows gracefully fails if non-Error thrown (#6330) 2020-06-23 10:47:09 -04:00
Vladimir Iakovlev
bd26a72ab3
Update assertions names in std/testing README (#6318) 2020-06-16 17:22:54 -04:00
Joel Chippindale
f6fa659384
Fix assertEqual so that it handles URL objects (#6278) 2020-06-13 10:01:05 -04:00
Nayeem Rahman
1fff6f55c3
refactor: Don't destructure the Deno namespace (#6268) 2020-06-12 15:23:38 -04:00
Szalay Kristóf
6e75254abb
fix(std/testing/bench): Make progress callback async (#6175) 2020-06-09 11:19:06 -04:00
Casper Beyer
ed5aedc6b4
Rename abbreviated assertions in std/testing (#6118) 2020-06-05 23:43:00 -04:00
Jon Short
4b1638dccc
feat(std/testing): Allow non-void promises in assertThrowsAsync (#6052) 2020-06-04 10:43:05 -04:00
Szalay Kristóf
42a04ea08a
refactor(std/testing/bench): Remove differentiating on runs count (#6084) 2020-06-03 22:33:53 -04:00
Szalay Kristóf
cab273476a
fix(std/testing/bench): clock assertions without --allow-hrtime (#6069) 2020-06-03 13:45:37 -04:00
Szalay Kristóf
4ef38bad43
docs: benchmarking (#6075) 2020-06-03 13:44:37 -04:00
Nayeem Rahman
aaa2ed5a64
fix(std/testing/asserts): Format values in assertArrayContains() (#6060) 2020-06-02 23:38:46 -04:00
Szalay Kristóf
1db98f10b8
feat(std/testing): benching progress callback (#5941) 2020-06-02 17:06:13 -04:00
Szalay Kristóf
6de59f1908
Return results in benchmark promise (#5842) 2020-05-29 02:29:58 -04:00
Nayeem Rahman
4ebd243423
fix(std/testing/asserts): Support browsers (#5847) 2020-05-25 13:32:34 -04:00
Speykious
9752b853dd
Provide better ANSI colorized output when inspecting objects (#5404) 2020-05-19 14:19:26 -04:00
Stéphane Klein
62a7fcbdc4
fix(std/testing): Provide message and diff for assertStrictEq (#5417)
closes #5416
2020-05-15 09:49:11 -04:00
Nayeem Rahman
678313b176
BREAKING: Remove Deno.EOF, use null instead (#4953) 2020-04-28 12:40:43 -04:00
Bartek Iwańczuk
8feb30e325
BREAKING: remove overload of Deno.test() (#4951)
This commit removes overload of Deno.test() that accepted named
function.
2020-04-28 12:33:09 +02:00
Nayeem Rahman
926db017d9
Remove std/testing/format.ts (#4749) 2020-04-15 10:12:42 -04:00
Chris Knight
85c61bff1c
fix(std/testing/asserts): change left/right to actual/expected (#4697) 2020-04-10 10:10:45 -04:00
Bartek Iwańczuk
ee126eb4a7
remove std/testing/runner.ts (#4649) 2020-04-06 18:50:56 +02:00
Khải
788a6abfd3
fix(std/testing): formatting bigint (#4626) 2020-04-04 13:13:37 -04:00
Nayeem Rahman
270e87d9db
refactor(cli/js/testing): Reduce testing interfaces (#4451)
* Reduce "testing" interfaces
* Use a callback instead of a generator for Deno.runTests()
* Default RunTestsOptions::reportToConsole to true
* Compose TestMessage into a single interface
2020-04-01 10:47:23 +02:00
Kitson Kelly
bced52505f
Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
Samrith Shankar
798904b0f2
Add require-await lint rule (#4401) 2020-03-20 09:38:34 -04:00
Nayeem Rahman
b7e6a31a42
fix(std/http): Fix respond error test on Windows (#4408) 2020-03-19 19:15:21 -04:00
Bartek Iwańczuk
74c37e759a
remove std/testing/runner.ts, use deno test for std/ tests (#4397)
This introduces BREAKING CHANGE by removing "std/testing/runner.ts".

Std tests are now run using "deno test" subcommand.
2020-03-19 14:49:06 +01:00