Skip to content

Commit

Permalink
tests(taExecCommand.spec): Split out the taExecCommand tests into sep…
Browse files Browse the repository at this point in the history
…erate files.
  • Loading branch information
SimeonC authored and SimeonC committed Nov 11, 2014
1 parent e4cacb4 commit 735c562
Show file tree
Hide file tree
Showing 6 changed files with 610 additions and 601 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
textAngular v1.3.0-pre13
textAngular v1.3.0-pre14
===========

[![Build Status](https://travis-ci.org/fraywing/textAngular.png?branch=master)](https://travis-ci.org/fraywing/textAngular) [![Coverage Status](https://coveralls.io/repos/fraywing/textAngular/badge.png)](https://coveralls.io/r/fraywing/textAngular)
Expand Down
16 changes: 16 additions & 0 deletions test/taBrowserTag.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
describe('taBrowserTag', function(){
'use strict';
beforeEach(module('textAngular'));

it('should return p for undefined', inject(function(taBrowserTag){
expect(taBrowserTag()).toBe('p');
}));

it('should return div for empty', inject(function(taBrowserTag){
expect(taBrowserTag('')).toBe('p'); // don't ask me why phantomjs thinks it's ie
}));

it('should return string otherwise', inject(function(taBrowserTag){
expect(taBrowserTag('b')).toBe('b');
}));
});
Loading

0 comments on commit 735c562

Please sign in to comment.