Skip to content

Commit

Permalink
Fix un-executed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mixonic committed Nov 19, 2015
1 parent 915a287 commit d4ce7b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/acceptance/editor-cards-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Editor } from 'mobiledoc-kit';
import { DIRECTION } from 'mobiledoc-kit/utils/key';
import Position from 'mobiledoc-kit/utils/cursor/position';
import Helpers from '../test-helpers';
import { CARD_MODES } from 'mobiledoc-kit/models/cards';
import { CARD_MODES } from 'mobiledoc-kit/models/card';

const { test, module } = Helpers;

Expand Down Expand Up @@ -447,14 +447,14 @@ test('editor ignores events when focus is inside a card', (assert) => {
test('a moved card retains its inital editing mode', (assert) => {
const mobiledoc = Helpers.mobiledoc.build(({post, markupSection, cardSection}) => {
let card = cardSection('simple-card');
card.setInitialMode(CARD_MODES.EDIT);
return post([
markupSection(),
card
]);
});

editor = new Editor({mobiledoc, cards: [simpleCard]});
editor.post.sections.tail.setInitialMode(CARD_MODES.EDIT);
editor.render(editorElement);

assert.hasElement('#edit-button', 'precond - card is in edit mode');
Expand Down

0 comments on commit d4ce7b9

Please sign in to comment.