JS.Test.describe('emojify with differing tag_types', function() {
    'use strict';

    this.describe('emojify using .replace', function() {
        this.it('should default to img element', function() {
            var text = ':)';
            var result = emojify.replace(text);
            this.assertEqual('<img title=\':smile:\' alt=\':smile:\' class=\'emoji\' src=\'images/emoji/smile.png\' align=\'absmiddle\' />', result);
        });

        this.it('null emojify_tag_type should be img element', function() {
            emojify.setConfig({
                emojify_tag_type: null
            });
            var text = ':)';
            var result = emojify.replace(text);
            this.assertEqual('<img title=\':smile:\' alt=\':smile:\' class=\'emoji\' src=\'images/emoji/smile.png\' align=\'absmiddle\' />', result);
        });

        this.it('div emojify_tag_type should be well formed', function() {
            emojify.setConfig({
                emojify_tag_type: 'div'
            });
            var text = ':)';
            var result = emojify.replace(text);
            this.assertEqual('<div title=\':smile:\' alt=\':smile:\' class=\'emoji emoji-smile\'> </div>', result);
        });
    });

    this.describe('emojify using .run', function() {

        this.before(function() {
            this.el = document.createElement("DIV");
        });

        this.it('null emojify_tag_type should be img element', function() {
            emojify.setConfig({
                emojify_tag_type: null
            });
            this.el.innerHTML = ":)";
            emojify.run(this.el);
            this.assertEqual('<img class="emoji" src="images/emoji/smile.png" title=":smile:" alt=":smile:" align="absmiddle"></img>', this.el.innerHTML);
        });

        this.it('div emojify_tag_type should be well formed', function() {
            emojify.setConfig({
                emojify_tag_type: 'div'
            });
            this.el.innerHTML = ":)";
            emojify.run(this.el);
            this.assertEqual('<div class="emoji emoji-smile" title=":smile:" alt=":smile:" align="absmiddle"></div>', this.el.innerHTML);
        });

    });
});

@@ -832,32 +832,435 @@
 );%0A        %7D);%0A%0A
+        this.it('img emojify_tag_type should be well formed', function() %7B%0A            emojify.setConfig(%7B%0A                emojify_tag_type: 'img'%0A            %7D);%0A            var text = ':)';%0A            var result = emojify.replace(text);%0A            this.assertEqual('%3Cimg title=%5C':smile:%5C' alt=%5C':smile:%5C' class=%5C'emoji%5C' src=%5C'images/emoji/smile.png%5C' align=%5C'absmiddle%5C' /%3E', result);%0A        %7D);%0A%0A
         this.it(
@@ -2168,32 +2168,435 @@
 );%0A        %7D);%0A%0A
+        this.it('img emojify_tag_type should be img element', function() %7B%0A            emojify.setConfig(%7B%0A                emojify_tag_type: 'img'%0A            %7D);%0A            this.el.innerHTML = %22:)%22;%0A            emojify.run(this.el);%0A            this.assertEqual('%3Cimg class=%22emoji%22 src=%22images/emoji/smile.png%22 title=%22:smile:%22 alt=%22:smile:%22 align=%22absmiddle%22%3E%3C/img%3E', this.el.innerHTML);%0A        %7D);%0A%0A
         this.it(

Add tests for img as tag type