diff --git a/spec/retext-emoji.spec.js b/spec/retext-emoji.spec.js
index <HASH>..<HASH> 100755
--- a/spec/retext-emoji.spec.js
+++ b/spec/retext-emoji.spec.js
@@ -914,10 +914,7 @@ describe('emoji()', function () {
     );
 });
 
-for (name in gemoji.name) {
-    unicode = gemoji.name[name];
-    name = ':' + name + ':';
-
+function describeEmoji(name, unicode) {
     describe('emoji `' + unicode + '`', function () {
         it('should decode the emoticon (from `' + unicode + '` to `' +
             name + '`)', function () {
@@ -944,3 +941,7 @@ for (name in gemoji.name) {
         );
     });
 }
+
+for (name in gemoji.name) {
+    describeEmoji(':' + name + ':', gemoji.name[name]);
+}
Fixed a bug in the spec where emoji were not correctly tested