mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 08:50:13 +02:00
Refactor code
This commit is contained in:
12
test/nav.js
12
test/nav.js
@@ -5,10 +5,14 @@ var navApp = window.angular.module('navApp', [])
|
||||
|
||||
navApp.controller('NavAppCtrl', function ($scope) {
|
||||
$scope.items = [
|
||||
{'name': 'Ett',
|
||||
'url': 'cases/ett.html'},
|
||||
{'name': 'Two',
|
||||
'url': 'cases/two.html'}
|
||||
{
|
||||
'name': 'Ett',
|
||||
'url': 'cases/ett.html'
|
||||
},
|
||||
{
|
||||
'name': 'Two',
|
||||
'url': 'cases/two.html'
|
||||
}
|
||||
]
|
||||
|
||||
$scope.frameUrl = 'web.html'
|
||||
|
@@ -9,19 +9,17 @@ for (var file in window.__karma__.files) {
|
||||
console.log('Testing with: ' + file2)
|
||||
|
||||
tests.push(file2)
|
||||
//
|
||||
}
|
||||
}
|
||||
}
|
||||
// tests.push('parser/flow.spec');
|
||||
|
||||
require.config({
|
||||
// Karma serves files from '/base'
|
||||
// Karma serves files from '/base'
|
||||
baseUrl: '/base/src',
|
||||
|
||||
// ask Require.js to load these files (all our tests)
|
||||
// ask Require.js to load these files (all our tests)
|
||||
deps: tests,
|
||||
|
||||
// start test run, once Require.js is done
|
||||
// start test run, once Require.js is done
|
||||
callback: window.__karma__.start
|
||||
})
|
||||
|
@@ -20,7 +20,7 @@ require([], function () {
|
||||
console.log(mermaid)
|
||||
mermaid.init()
|
||||
assert.equal(window.d3.selectAll('path')[0].length, 8,
|
||||
'drew 8 paths')
|
||||
'drew 8 paths')
|
||||
done()
|
||||
})
|
||||
})
|
||||
|
@@ -1,9 +0,0 @@
|
||||
/**
|
||||
* Created by knut on 15-03-07.
|
||||
*/
|
||||
// define('simple', function () {
|
||||
// var simple = {
|
||||
// data: 'info'
|
||||
// }
|
||||
// return simple
|
||||
// })
|
Reference in New Issue
Block a user