summaryrefslogtreecommitdiffstats
path: root/js/tests/services/showallSpec.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/services/showallSpec.coffee')
-rw-r--r--js/tests/services/showallSpec.coffee26
1 files changed, 11 insertions, 15 deletions
diff --git a/js/tests/services/showallSpec.coffee b/js/tests/services/showallSpec.coffee
index 7eba354f4..c3b54b3b1 100644
--- a/js/tests/services/showallSpec.coffee
+++ b/js/tests/services/showallSpec.coffee
@@ -21,29 +21,25 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
###
-describe '_ShowAll', ->
+describe 'ShowAll', ->
beforeEach module 'News'
- beforeEach inject (@_ShowAll) =>
- @showAll = new @_ShowAll()
-
+ beforeEach inject (@ShowAll) =>
it 'should be false by default', =>
-
-
- expect(@showAll.getShowAll()).toBeFalsy()
+ expect(@ShowAll.getShowAll()).toBeFalsy()
- it 'should set the correct showAll value', =>
- @showAll.handle(true)
- expect(@showAll.getShowAll()).toBeTruthy()
+ it 'should set the correct ShowAll value', =>
+ @ShowAll.handle(true)
+ expect(@ShowAll.getShowAll()).toBeTruthy()
- it 'should provide a set showall setter', =>
- @showAll.setShowAll(true)
- expect(@showAll.getShowAll()).toBeTruthy()
+ it 'should provide a set Showall setter', =>
+ @ShowAll.setShowAll(true)
+ expect(@ShowAll.getShowAll()).toBeTruthy()
- @showAll.setShowAll(false)
- expect(@showAll.getShowAll()).toBeFalsy()
+ @ShowAll.setShowAll(false)
+ expect(@ShowAll.getShowAll()).toBeFalsy()