'use strict';

var expect = require('chai').expect;
var SPM = require('../index');

describe('#SlackPlaysMusic', function() {

  context('MagicNumbers', function(){

    it('should return 0', function() {
      var magicNumber = SPM.prototype.getMagicNumberFromWord('!');
      expect(magicNumber).to.equal(0);
      magicNumber = SPM.prototype.getMagicNumberFromWord('i');
      expect(magicNumber).to.equal(0);
    });

    it('should return 71', function() {
      var magicNumber = SPM.prototype.getMagicNumberFromWord('h');
      expect(magicNumber).to.equal(71);
    });
  });

});

@@ -142,17 +142,16 @@
 icNumber
-s
 ', funct
@@ -157,16 +157,16 @@
 tion()%7B%0A
+
 %0A    it(
@@ -401,24 +401,127 @@
 o.equal(0);%0A
+      magicNumber = SPM.prototype.getMagicNumberFromWord('hi');%0A      expect(magicNumber).to.equal(0);%0A
     %7D);%0A%0A   
@@ -620,24 +620,24 @@
 mWord('h');%0A
-
       expect
@@ -664,16 +664,1862 @@
 al(71);%0A
+      magicNumber = SPM.prototype.getMagicNumberFromWord('hh');%0A      expect(magicNumber).to.equal(71);%0A    %7D);%0A  %7D);%0A%0A%0A  context('Color', function()%7B%0A%0A    it('should return #000000', function()%7B%0A      var color = SPM.prototype.getColorFromWord('!');%0A      expect(color).to.equal('#000000');%0A      color = SPM.prototype.getColorFromWord('i');%0A      expect(color).to.equal('#000000');%0A      color = SPM.prototype.getColorFromWord('hi');%0A      expect(color).to.equal('#000000');%0A    %7D);%0A%0A    // max possible color with default config%0A    it('should return #fc71c7', function()%7B%0A      var color = SPM.prototype.getColorFromWord('h');%0A      expect(color).to.equal('#fc71c7');%0A      color = SPM.prototype.getColorFromWord('hh');%0A      expect(color).to.equal('#fc71c7');%0A    %7D);%0A%0A  %7D);%0A%0A%0A  context('Note', function()%7B%0A%0A    it('should return C1', function()%7B%0A      var note = SPM.prototype.getNoteFromWord('!');%0A      expect(note).to.equal('C1');%0A      note = SPM.prototype.getNoteFromWord('i');%0A      expect(note).to.equal('C1');%0A      note = SPM.prototype.getNoteFromWord('hi');%0A      expect(note).to.equal('C1');%0A    %7D);%0A%0A    it('should return B6', function()%7B%0A      var note = SPM.prototype.getNoteFromWord('h');%0A      expect(note).to.equal('B6');%0A      note = SPM.prototype.getNoteFromWord('hh');%0A      expect(note).to.equal('B6');%0A    %7D);%0A  %7D);%0A%0A  context('Sustain', function()%7B%0A    it('should return 0.25', function()%7B%0A      var sustain = SPM.prototype.getSustainFromWord('!');%0A      expect(sustain).to.equal(0.25);%0A      sustain = SPM.prototype.getSustainFromWord('i');%0A      expect(sustain).to.equal(0.25);%0A    %7D);%0A%0A    it('should return 1', function()%7B%0A      var sustain = SPM.prototype.getSustainFromWord('hder');%0A      expect(sustain).to.equal(1);%0A      sustain = SPM.prototype.getSustainFromWord('hhe3');%0A      expect(sustain).to.equal(1);%0A
     %7D);%0A

Add test for calculation functions