var assert = require('assert');
var fs = require('fs');
var path = require('path');

var formatTextToTanzaku = require('../index');

var konnichiwaSekaiTanzaku = fs.readFileSync(path.join(__dirname, 'support/konnichiwa-sekai.txt')).toString();
konnichiwaSekaiTanzaku = konnichiwaSekaiTanzaku.replace(/\n$/, '');
var helloWorldTanzaku = fs.readFileSync(path.join(__dirname, 'support/hello-world.txt')).toString();
helloWorldTanzaku = helloWorldTanzaku.replace(/\n$/, '');


describe('tanzaku', function() {

  it('should be defined', function() {
    assert.strictEqual(typeof formatTextToTanzaku, 'function');
  });

  it('should format zenkaku-text', function() {
    var actual = formatTextToTanzaku('こんにちわ、世界！');
    assert.strictEqual(actual, konnichiwaSekaiTanzaku);
  });

  it('should format hankaku-text', function() {
    var actual = formatTextToTanzaku('Hello World!');
    assert.strictEqual(actual, helloWorldTanzaku);
  });
});

@@ -732,24 +732,16 @@
 ctEqual(
-actual, 
 konnichi
@@ -750,24 +750,32 @@
 SekaiTanzaku
+, actual
 );%0A  %7D);%0A%0A  
@@ -901,16 +901,8 @@
 ual(
-actual, 
 hell
@@ -914,16 +914,24 @@
 dTanzaku
+, actual
 );%0A  %7D);

Tweak test code