mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* remove unused traceur checks * ignore test suites for different major versions * reduce test loading IO * reduce readFile IO * reduce source map loading IO * improve * fix tests * add check --------- Co-authored-by: liuxingbaoyu <[email protected]>
10 lines
207 B
JavaScript
10 lines
207 B
JavaScript
class MyDate extends Date {
|
|
constructor(time) {
|
|
super(time);
|
|
}
|
|
}
|
|
let myDate = new MyDate();
|
|
|
|
expect(myDate.toString).toBe(Date.prototype.toString);
|
|
expect(typeof myDate.toString()).toBe("string");
|