1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
Commit graph

37 commits

Author SHA1 Message Date
Bartek Iwańczuk
8e914be742
build: migrate to dlint (#8176)
This commit migrates repository from using "eslint" 
to "dlint" for linting JavaScript code.
2020-11-03 16:19:29 +01:00
Yasser A.Idrissi
35caa160bf
feat(std/testing): Add assertExists assertion (#7874) 2020-10-26 16:46:38 +01:00
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
David Sherret
df02e31507
feat(fmt): Sort named import and export specifiers (#7711) 2020-09-27 12:22:32 +02: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
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
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
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
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
Nayeem Rahman
aaa2ed5a64
fix(std/testing/asserts): Format values in assertArrayContains() (#6060) 2020-06-02 23:38:46 -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
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
Kitson Kelly
bced52505f
Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
Chris Knight
2115b38fef
test: add actual error class to fail message (#4305) 2020-03-09 17:46:55 -04:00
Bartek Iwańczuk
61273085e4
refactor: rewrite tests in std/ to use Deno.test (#3930) 2020-02-11 17:24:27 +01:00
Ry Dahl
bfab4ed0df
Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
Kitson Kelly
9837d324a7 Update to TypeScript 3.7 (#3275)
and update to prettier 1.19

Also, update `assert()` and remove not null assertions where possibly
in `cli`.

Closes #3273
2019-11-13 13:42:34 -05:00
James Wright
429439d198 Consolidates asserts#equal branches for keyed collections (Map/Set) and supports deep equality of Map keys (#3258) 2019-11-04 10:21:42 -05:00
James Wright
64957d92ef Support for deep Map equality with asserts#equal (#3236) 2019-10-29 20:23:54 -04:00
Ryan Dahl
151ce0266e
Move everything into std subdir 2019-10-09 17:10:09 -04:00
Renamed from testing/asserts_test.ts (Browse further)