mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-25 00:28:31 -05:00
22 lines
476 B
CoffeeScript
22 lines
476 B
CoffeeScript
|
require '../common'
|
||
|
|
||
|
describe 'schema methods', ->
|
||
|
patch = new Patch
|
||
|
delta:
|
||
|
scripts: 0: i18n: 'aaahw yeahh'
|
||
|
_t: 'a'
|
||
|
|
||
|
it 'is translation patch', ->
|
||
|
expect(patch.isTranslationPatch()).toBeTruthy()
|
||
|
patch.set 'delta.i18n', undefined
|
||
|
expect(patch.isTranslationPatch()).toBeFalsy()
|
||
|
|
||
|
it 'is miscellaneous patch', ->
|
||
|
expect(patch.isMiscPatch()).toBeTruthy()
|
||
|
patch.set 'delta.thangs', undefined
|
||
|
expect(patch.isMiscPatch()).toBeFalsy()
|
||
|
|
||
|
|
||
|
|
||
|
|