Skip to content

Commit

Permalink
Use broccoli-test-builder and fix jshint failures
Browse files Browse the repository at this point in the history
  • Loading branch information
bantic committed Jul 2, 2015
1 parent af71d2d commit 59d103c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 83 deletions.
2 changes: 1 addition & 1 deletion Brocfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var builder = require('broccoli-multi-builder');
var mergeTrees = require('broccoli-merge-trees');
var testTreeBuilder = require('./broccoli/test-tree-builder');
var testTreeBuilder = require('broccoli-test-builder');

var vendoredModules = [
{name: 'content-kit-compiler', options: {libDirName: 'src'}},
Expand Down
71 changes: 0 additions & 71 deletions broccoli/test-tree-builder.js

This file was deleted.

8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@
},
"devDependencies": {
"broccoli": "^0.16.3",
"broccoli-babel-transpiler": "^5.2.3",
"broccoli-concat": "0.0.13",
"broccoli-funnel": "^0.2.3",
"broccoli-merge-trees": "^0.2.1",
"broccoli-multi-builder": "^0.2.2",
"broccoli-multi-builder": "^0.2.5",
"broccoli-test-builder": "^0.1.0",
"content-kit-compiler": "^0.3.1",
"content-kit-utils": "^0.2.0",
"del": "^1.1.1",
Expand All @@ -48,8 +46,6 @@
"gulp-open": "^0.2.8",
"gulp-qunit": "^1.2.1",
"gulp-uglify": "^1.1.0",
"loader.js": "^3.2.0",
"qunitjs": "^1.17.1",
"testem": "^0.8.4"
}
}
1 change: 1 addition & 0 deletions src/js/utils/http-utils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* global JSON */
import win from '../utils/win';

function createXHR(options) {
Expand Down
1 change: 1 addition & 0 deletions src/js/utils/selection-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
Type,
doc
} from 'content-kit-compiler';
import win from './win';

// TODO: remove, pass in Editor's current block set
var RootTags = [
Expand Down
1 change: 1 addition & 0 deletions src/js/views/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { inherit } from 'content-kit-utils';
import { tagsInSelection } from '../utils/selection-utils';
import { createDiv, swapElements, positionElementToRightOf, positionElementCenteredAbove } from '../utils/element-utils';
import { doc } from 'content-kit-compiler';
import win from '../utils/win';

var ToolbarDirection = {
TOP : 1,
Expand Down
2 changes: 1 addition & 1 deletion tests/editor-test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global QUnit, test, asyncTest, ok, equal */
/* global QUnit, test, asyncTest, ok, equal, expect, start */

var fixture = document.getElementById('qunit-fixture');
var editorElement = document.createElement('div');
Expand Down
8 changes: 4 additions & 4 deletions tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
<head>
<meta charset="utf-8">
<title>Content-Kit-Editor tests</title>
<link rel="stylesheet" href="./qunitjs/qunit/qunit.css">
<link rel="stylesheet" href="./qunit/qunit.css">
</head>
<body>

<div id="qunit"></div>
<div id="qunit-fixture"></div>

<script src="./qunitjs/qunit/qunit.js"></script>
<script src="./qunit/qunit.js"></script>
<script src="/testem.js"></script>
<script src="./loader.js/loader.js"></script>
<script src="../amd/content-kit-editor.js"></script>
<script src="./content-kit-editor-tests.amd.js"></script>
<script src="./ember-cli-test-loader/test-loader.js"></script>
<script src="./built-amd-tests.js"></script>
<script src="./test-loader/test-loader.js"></script>
<script>
var TestLoader = require('ember-cli/test-loader')['default'];
var testLoader = new TestLoader();
Expand Down

0 comments on commit 59d103c

Please sign in to comment.