8
0

benderglobals.js 1.1 KB

12345678910111213141516171819202122232425262728
  1. /**
  2. * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. 'use strict';
  6. describe( 'bender global utils', () => {
  7. describe( 'view', () => {
  8. it( 'should be published in bender object', () => {
  9. expect( bender.view ).to.be.an( 'object' );
  10. expect( bender.view ).to.have.property( 'getData' ).that.is.a( 'function' );
  11. expect( bender.view ).to.have.property( 'setData' ).that.is.a( 'function' );
  12. expect( bender.view ).to.have.property( 'parse' ).that.is.a( 'function' );
  13. expect( bender.view ).to.have.property( 'stringify' ).that.is.a( 'function' );
  14. } );
  15. } );
  16. describe( 'model', () => {
  17. it( 'should be published in bender object', () => {
  18. expect( bender.model ).to.be.an( 'object' );
  19. expect( bender.model ).to.have.property( 'getData' ).that.is.a( 'function' );
  20. expect( bender.model ).to.have.property( 'setData' ).that.is.a( 'function' );
  21. expect( bender.model ).to.have.property( 'parse' ).that.is.a( 'function' );
  22. expect( bender.model ).to.have.property( 'stringify' ).that.is.a( 'function' );
  23. } );
  24. } );
  25. } );