Skip to content

Commit

Permalink
Code cleaning.
Browse files Browse the repository at this point in the history
  • Loading branch information
hackerwins committed Jan 23, 2016
1 parent c22f2ce commit 8a7cde3
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions test/unit/bs3/module/Buttons.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,25 @@
*/
define([
'chai',
'chaidom',
'jquery',
'bootstrap',
'summernote/bs3/settings',
'summernote/base/core/agent',
'summernote/base/core/dom',
'summernote/base/core/range',
'summernote/base/Context'
], function (chai, chaidom, $, bootstrap, settings, agent, dom, range, Context) {
], function (chai, $, range, Context) {
'use strict';

var expect = chai.expect;

describe('bs3:module.Buttons', function () {
var editor, context, $note, $toolbar, $editable, $dummy;
describe('Buttons', function () {
var context, $toolbar, $editable, $dummy;

beforeEach(function () {
$note = $('<div><p>hello</p></div>');

$note.appendTo('body');
var $note = $('<div><p>hello</p></div>').appendTo('body');

var options = $.extend({}, $.summernote.options);
options.langInfo = $.extend(true, {}, $.summernote.lang['en-US'], $.summernote.lang[options.lang]);
context = new Context($note, options);
context.initialize();

editor = context.modules.editor;
$toolbar = context.layoutInfo.toolbar;
$editable = context.layoutInfo.editable;

Expand Down

0 comments on commit 8a7cde3

Please sign in to comment.