Permalink
Browse files

add tests

  • Loading branch information...
tj committed Sep 12, 2012
1 parent 5184501 commit f81458d8e5f287177d6598171a7442dddb446e56
Showing with 13 additions and 1 deletion.
  1. +1 −1 component.json
  2. +4 −0 index.js
  3. +8 −0 test/index.js
View
@@ -3,7 +3,7 @@
"repo": "component/t",
"description": "tiny translation helper",
"version": "0.0.1",
- "keywords": [],
+ "keywords": ["translate", "i18n", "internationalization", "gettext"],
"dependencies": {},
"development": {},
"scripts": [
View
@@ -0,0 +1,4 @@
+
+module.exports = function(str){
+ return str;
+};
View
@@ -0,0 +1,8 @@
+
+var t = require('..');
+
+describe('t(str)', function(){
+ it('should return the english string', function(){
+ t('Hello').should.equal('Hello');
+ })
+})

0 comments on commit f81458d

Please sign in to comment.