From a5ae60bbc96551df3d38dd87eb2f27d51cd8a906 Mon Sep 17 00:00:00 2001 From: Alex Savin Date: Thu, 5 May 2016 17:17:33 +0100 Subject: [PATCH] Adding success sound --- index.js | 1 + package.json | 2 +- success.m4a | Bin 0 -> 69079 bytes 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 success.m4a diff --git a/index.js b/index.js index 203332f..d269666 100644 --- a/index.js +++ b/index.js @@ -70,6 +70,7 @@ function Trumpet(runner) { + color('pass', ' %s') + color(test.speed, ' (%dms)'); cursor.CR(); + sfx.play(__dirname + '/success.m4a'); console.log(fmt, test.title, test.duration); } }); diff --git a/package.json b/package.json index fbe47fd..fbf52c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mocha-trumpet-reporter", - "version": "0.0.1", + "version": "0.0.2", "description": "Trumper reporter for Mocha", "main": "index.js", "author": "", diff --git a/success.m4a b/success.m4a new file mode 100644 index 0000000000000000000000000000000000000000..90e4ea814360716c9be49c2c3ce3bb316b090b16 GIT binary patch literal 69079 zcmeI&XH*nTyD01);t(Bj5OhEUL^247gds{)q9Q?p<_&;Is4>-%$lp4Gj)S5>E~>Z_}&dl~@%V6paiMxEbYv} z4BE-^|L3~?IiB6t($VdoEC9H>csl3fcg=LyL%&yQMpn z!N+2;>|ja&rnDG3fDz0GZU8_4KnQNZqec>e2?B%#7~MTQ&Q1aIP_aSaNniqSgVjHP zGT;Io2koQ(Hzfj7s(x$ zz%T~mE*Q||L6>X_h7K4IkqHC*s|E&C7jztC0p+3eKka`2=ApJi>ri{3b;ujK zR;Ue7yUf6Vwn6JqTcB;wx)~V%xz5XA9_%*{T)-4shyY*)Ocp)@!1@OO*!u(kxOD(Q z4CaADPfHJ|9a~OTXDOHk{@cI;2cw(0t1EQ9|FyK+Il4nv)xZZXV9MfTWqvmN9=JI1 zLq}Wj+v#~aTR~E^&gM?gT?L>mx|&*0Zws|FKdTJ^ZAT0KyZn=p5Ec9FR%bC01LnZumCIo3%~-f04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