Skip to content

Commit

Permalink
fix test names
Browse files Browse the repository at this point in the history
  • Loading branch information
angus-c committed Jul 18, 2022
1 parent ad0ffd4 commit ccfa37b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/function-demethodize/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ demethodize({}); // undefined
demethodize(undefined); // undefined
*/

test('resulting function uses first arg as `this` value', function(t) {
test('resulting function as higher order function', function(t) {
t.plan(1);
var trimFn = demethodize(''.trim);
var mapped = ['hello ', ' goodbye', 'hello again'].map(trimFn);
t.deepEqual(mapped, ['hello', 'goodbye', 'hello again']);
t.end();
});

test('resulting function passes remaining args to new function', function(t) {
test('resulting function uses first arg as `this` value', function(t) {
t.plan(1);
var circle = {
volumeOfCylinder: function(height) {
Expand Down

0 comments on commit ccfa37b

Please sign in to comment.