|
@@ -3,15 +3,6 @@ test("length is 1", () => {
|
|
});
|
|
});
|
|
|
|
|
|
describe("errors", () => {
|
|
describe("errors", () => {
|
|
- test("requires at least one argument", () => {
|
|
|
|
- expect(() => {
|
|
|
|
- [].reduceRight();
|
|
|
|
- }).toThrowWithMessage(
|
|
|
|
- TypeError,
|
|
|
|
- "Array.prototype.reduceRight() requires at least one argument"
|
|
|
|
- );
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
test("callback must be a function", () => {
|
|
test("callback must be a function", () => {
|
|
expect(() => {
|
|
expect(() => {
|
|
[].reduceRight(undefined);
|
|
[].reduceRight(undefined);
|