Skip to content

Commit

Permalink
TST: Add test-colorer.js skeleton biocore#142 biocore#137
Browse files Browse the repository at this point in the history
  • Loading branch information
fedarko committed Apr 23, 2020
1 parent 2bd92b3 commit 2d66298
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
/* vendor paths */
'jquery' : './support_files/vendor/jquery-2.2.4.min',
'glMatrix' : './support_files/vendor/gl-matrix.min',
'chroma' : './support_files/vendor/chroma.min',

/* succinct tree paths */
'ByteArray': './support_files/js/byte-array',
Expand All @@ -43,19 +44,21 @@
'testBPTree' : './../tests/test-bp-tree',
'testByteTree' : './../tests/test-byte-array',
'testCamera' : './../tests/test-camera',
'testColorer' : './../tests/test-colorer',
'testSummaryHelper': './../tests/test-summary-helper'
}
});

// load tests
require(
['jquery', 'glMatrix', 'ByteArray', 'BPTree', 'Camera',
'BiomTable', 'SummaryHelper', 'testBPTree', 'testByteTree', 'testCamera',
'testSummaryHelper'],
['jquery', 'glMatrix', 'chroma', 'ByteArray', 'BPTree', 'Camera',
'Colorer', 'BiomTable', 'SummaryHelper', 'testBPTree', 'testByteTree',
'testCamera', 'testColorer', 'testSummaryHelper'],

// start tests
function ($, gl, ByteArray, BPTree, Camera, BiomTable, SummaryHelper,
testBPTree, testByteTree, testCamera, testSummaryHelper) {
function ($, gl, chroma, ByteArray, BPTree, Camera, Colorer, BiomTable,
SummaryHelper, testBPTree, testByteTree, testCamera, testColorer,
testSummaryHelper) {
$(document).ready(function() {
QUnit.start();
});
Expand Down
15 changes: 15 additions & 0 deletions tests/test-colorer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require(['jquery', 'Colorer'], function($, Colorer) {
$(document).ready(function() {
// Setup test variables
module('Colorer' , {
setup: function() {
},

teardown: function() {
}
});
test('Test nothing right now', function() {
expect(0);
});
});
});

0 comments on commit 2d66298

Please sign in to comment.