[Pkg-javascript-commits] [node-tap] 10/186: use arrow instead of function
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 1 16:40:38 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-tap.
commit 6f003e4777ea7fc53d72e79cec9f004b95928844
Author: isaacs <i at izs.me>
Date: Fri Jul 7 23:59:37 2017 -0700
use arrow instead of function
---
lib/test.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/test.js b/lib/test.js
index 6326143..64be168 100644
--- a/lib/test.js
+++ b/lib/test.js
@@ -1191,11 +1191,11 @@ class Test extends Base {
// have to do as a subtest, because promises are async
extra.at = stack.at(this.currentAssert)
- this.test(message, { buffered: true }, function (t) {
- return promise.then(function (value) {
+ this.test(message, { buffered: true }, t => {
+ return promise.then(value => {
extra.found = value
t.fail(message, extra)
- }, function (er) {
+ }, er => {
// 'name' is a getter.
if (er.name) {
er.name = er.name + ''
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-tap.git
More information about the Pkg-javascript-commits
mailing list