/*global describe, it, expect, example, before, after, beforeEach, afterEach, mocha, sinon*/
'use strict';

var assert = require('chai').assert;
var $ = require('jquery');
var m = require('mithril');
var URI = require('URIjs');
var Treebeard = require('treebeard');
var Fangorn = require('js/fangorn');

// Add sinon asserts to chai.assert, so we can do assert.calledWith instead of sinon.assert.calledWith
sinon.assert.expose(assert, {prefix: ''});

var smallSample = [ {kind : 'folder', name : 'test folder'}, { kind : 'file', name : 'test file'}];

describe('fangornToolbars', () => {
// Tests related to the toolbar
	describe('toolbarOptions', () => {
	// header template is defined 


	});

});

@@ -549,143 +549,866 @@
 %5D;%0A%0A
-describe('fangornToolbars', () =%3E %7B%0A// Tests related to the toolbar%0A%09describe('toolbarOptions', () =%3E %7B%0A%09// header template is defined 
+var fangornInstance = function() %7B%0A    var fan =  new Fangorn(%7B%0A        divID: 'fangorn',%0A        filesData: smallSample%0A    %7D);%0A    return fan.grid.tbController;%0A%7D;%0A%0Adescribe('fangornToolbars', () =%3E %7B%0A// Tests related to the toolbar%0A%09describe('toolbarOptions', () =%3E %7B%0A%09  var fangorn; %0A%09  beforeEach(function() %7B%0A%09    // runs before all tests in this block%0A%09    $('body').append('%3Cdiv id=%22fangorn%22%3E%3C/div%3E');%0A%09    fangorn = fangornInstance();%0A%09  %7D);%0A%09  afterEach(function()%7B%0A%09    // runs after all tests in this block%0A%09    $('#fangorn').remove();%0A%09  %7D);%0A%0A%09  it('Should have fangorn toolbar template', function() %7B%0A%09  %09assert.ok(fangorn.options.headerTemplate);%0A%09  %7D);%0A%09  it('fangorn toolbar template should returns an object', function() %7B%0A%09  %09var template = fangorn.options.headerTemplate.call(fangorn);%0A%09  %09assert.equal(typeof template, 'object');%0A%09  %7D);%0A
 %0A%0A%0A%09
@@ -1412,12 +1412,14 @@
 %0A%0A%09%7D);%0A%0A%7D);%0A
+  

Add initial tests to fangorn.test [skip ci]