Sha256: c87ce34a5986f8810de9dfc18fd37c9e006398e52037435384916adba7ae17a5
Contents?: true
Size: 1.44 KB
Versions: 62
Compression:
Stored size: 1.44 KB
Contents
(function () { 'use strict'; describe('WORKAREA.menuEditorMenuListSortables', function () { describe('addToParent', function () { /*jshint multistr: true */ it('returns a boolean based on given elements', function () { this.fixtures = fixture.load( 'menu_editor_menu_list_sortable.html', false ); expect(WORKAREA.menuEditorMenuListSortables.addToParent( $('.menu-editor__list-item--placeholder'), $() )).to.equal(true); expect(WORKAREA.menuEditorMenuListSortables.addToParent( $(), $('.menu-editor__list-item--placeholder') )).to.equal(true); expect(WORKAREA.menuEditorMenuListSortables.addToParent( $('.menu-editor__list-item--placeholder'), $('.menu-editor__list-item') )).to.equal(false); expect(WORKAREA.menuEditorMenuListSortables.addToParent( $('.menu-editor__list-item'), $('.menu-editor__list-item--placeholder') )).to.equal(false); expect(WORKAREA.menuEditorMenuListSortables.addToParent( $('.menu-editor__list-item'), $('.menu-editor__list-item') )).to.equal(false); }); }); }); }());
Version data entries
62 entries across 62 versions & 1 rubygems