aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec/domSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-10-07 11:27:49 -0700
committerIgor Minar2011-10-11 11:01:46 -0700
commitfd822bdaf9d04e522aaa5400b673f333190abe98 (patch)
tree451cd26d3f7da862692d6c56e6e8f235824c180a /docs/spec/domSpec.js
parent4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (diff)
downloadangular.js-fd822bdaf9d04e522aaa5400b673f333190abe98.tar.bz2
chore(formating): clean code to be function() {
Diffstat (limited to 'docs/spec/domSpec.js')
-rw-r--r--docs/spec/domSpec.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/spec/domSpec.js b/docs/spec/domSpec.js
index 3fda656f..45813cc4 100644
--- a/docs/spec/domSpec.js
+++ b/docs/spec/domSpec.js
@@ -1,15 +1,15 @@
var DOM = require('dom.js').DOM;
-describe('dom', function(){
+describe('dom', function() {
var dom;
- beforeEach(function(){
+ beforeEach(function() {
dom = new DOM();
});
- describe('h', function(){
+ describe('h', function() {
- it('should render using function', function(){
+ it('should render using function', function() {
var cbThis;
var cdValue;
dom.h('heading', 'content', function(value){
@@ -20,8 +20,8 @@ describe('dom', function(){
expect(cbValue).toEqual('content');
});
- it('should update heading numbers', function(){
- dom.h('heading', function(){
+ it('should update heading numbers', function() {
+ dom.h('heading', function() {
this.html('<h1>sub-heading</h1>');
});
expect(dom.toString()).toContain('<h1>heading</h1>');