Coverage

100%
14
14
0

models/index.js

100%
14
14
0
LineHitsSource
1// Generated by CoffeeScript 1.3.3
21(function() {
31 var Greeter;
4
51 Greeter = (function() {
6
71 function Greeter(lang) {
810 this.lang = lang;
910 if (!(this.lang != null)) {
101 this.lang = 'en';
11 }
12 }
13
141 Greeter.prototype.sayHello = function(name) {
156 switch (this.lang) {
16 case 'jp':
172 return "" + (name != null ? "" + name + "\u3055\u3093\u3001" : "") + "\u3053\u3093\u306B\u3061\u306F\u3002";
18 case 'zh':
192 return "" + (name != null ? "" + name + "\uFF0C" : "") + "\u4F60\u597D\uFF01\u5403\u4E86\u6CA1\uFF1F";
20 default:
212 return "Hello" + (name != null ? ", " + name : "") + "!";
22 }
23 };
24
251 return Greeter;
26
27 })();
28
291 exports.Greeter = Greeter;
30
31}).call(this);