aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec/writerSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-01-19 15:42:11 -0800
committerMisko Hevery2011-01-24 14:23:51 -0800
commitc2f2587a79aeb77aad66f081cf924a79348a698e (patch)
tree8f5aa4cc6e7189befb834388b2102d1eda88a975 /docs/spec/writerSpec.js
parent5d0d34ae72a9ca47f1b2dabda60711ad16ee9313 (diff)
downloadangular.js-c2f2587a79aeb77aad66f081cf924a79348a698e.tar.bz2
fixed example rendering, add tests for it.
Diffstat (limited to 'docs/spec/writerSpec.js')
-rw-r--r--docs/spec/writerSpec.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/spec/writerSpec.js b/docs/spec/writerSpec.js
index 1a722ca6..8354ad5d 100644
--- a/docs/spec/writerSpec.js
+++ b/docs/spec/writerSpec.js
@@ -2,17 +2,17 @@ var writer = require('writer.js');
describe('writer', function(){
describe('toString', function(){
var toString = writer.toString;
-
+
it('should merge string', function(){
expect(toString('abc')).toEqual('abc');
});
-
+
it('should merge obj', function(){
expect(toString({a:1})).toEqual('{"a":1}');
});
-
+
it('should merge array', function(){
expect(toString(['abc',{}])).toEqual('abc{}');
});
});
-}); \ No newline at end of file
+});