Merge pull request #7062 from RocketChat/remove-useless-unit-tests

Remove Useless Jasmine Tests
pull/7095/head
Rodrigo Nascimento 9 years ago committed by GitHub
commit dda3cb9d82
  1. 4
      packages/rocketchat-katex/tests/jasmine/client/unit/katex.spec.coffee
  2. 24
      packages/rocketchat-lib/tests/jasmine/server/unit/models/_Base.spec.coffee

@ -1,4 +0,0 @@
describe 'rocketchat:katex Client', ->
it 'should exist', ->
expect(RocketChat.katex).toBeDefined()

@ -1,24 +0,0 @@
describe 'rocketchat:lib Server | Models | Base', ->
beforeEach ->
MeteorStubs.install()
this.obj = new RocketChat.models._Base
afterEach ->
MeteorStubs.uninstall()
it 'should exist', ->
expect(this.obj).toBeDefined()
it 'should provide a basename for collections', ->
expect(typeof this.obj._baseName()).toBe('string')
it 'should carry a Mongo.Collection object when initialized', ->
expect(this.obj.model).toBeFalsy()
expect(this.obj._initModel('carry')).toBeTruthy()
expect(typeof this.obj.model).toBe('object')
it 'should apply a basename to the Mongo.Collection created', ->
name = 'apply'
expect(this.obj._initModel(name)).toBeTruthy()
expect(this.obj.model._name).toBe(this.obj._baseName() + name)
Loading…
Cancel
Save