Auto fix standard style voilations

This commit is contained in:
Tyler Long
2017-04-11 22:14:25 +08:00
parent d46fda537d
commit 620f3e8734
66 changed files with 45436 additions and 45726 deletions

View File

@@ -1,19 +1,19 @@
/**
* Created by knut on 2015-09-15.
*/
var navApp = angular.module('navApp', []);
var navApp = angular.module('navApp', [])
navApp.controller('NavAppCtrl', function ($scope) {
$scope.items = [
{'name': 'Ett',
'url': 'cases/ett.html'},
{'name': 'Two',
'url': 'cases/two.html'}
];
$scope.items = [
{'name': 'Ett',
'url': 'cases/ett.html'},
{'name': 'Two',
'url': 'cases/two.html'}
]
$scope.frameUrl = "web.html"
$scope.frameUrl = 'web.html'
$scope.go = function(url){
alert(url);
}
});
$scope.go = function (url) {
alert(url)
}
})

View File

@@ -1,27 +1,27 @@
/**
* Created by knut on 14-11-03.
*/
var tests = [];
var tests = []
for (var file in window.__karma__.files) {
if (window.__karma__.files.hasOwnProperty(file)) {
if (/spec\.js$/.test(file)) {
var file2 = file.substr(10,file.length-13);
console.log('Testing with: '+file2);
if (window.__karma__.files.hasOwnProperty(file)) {
if (/spec\.js$/.test(file)) {
var file2 = file.substr(10, file.length - 13)
console.log('Testing with: ' + file2)
tests.push(file2);
tests.push(file2)
//
}
}
}
}
//tests.push('parser/flow.spec');
// tests.push('parser/flow.spec');
require.config({
// Karma serves files from '/base'
baseUrl: '/base/src',
baseUrl: '/base/src',
// ask Require.js to load these files (all our tests)
deps: tests,
deps: tests,
// start test run, once Require.js is done
callback: window.__karma__.start
});
callback: window.__karma__.start
})

View File

@@ -1,6 +1,6 @@
/**
* Created by knut on 14-12-02.
*/
mermaid = require('mermaid');
mermaid = require('mermaid')
console.log('Test page! mermaid version'+mermaid.version());
console.log('Test page! mermaid version' + mermaid.version())

View File

@@ -1,29 +1,29 @@
require.config({
paths: {
mermaid: '../../dist/mermaid'
},
shim: {
mermaid: {
exports: 'mermaid'
}
paths: {
mermaid: '../../dist/mermaid'
},
shim: {
mermaid: {
exports: 'mermaid'
}
});
}
})
require([], function (){
QUnit.module('requireTest.html');
require([], function () {
QUnit.module('requireTest.html')
QUnit.test('using mermaid in requirejs', function (assert){
var done = assert.async();
require(['mermaid'], function (mermaid) {
assert.ok(mermaid, 'mermaid is not null');
console.log(mermaid);
mermaid.init();
assert.equal(window.d3.selectAll('path')[0].length, 8,
'drew 8 paths');
done();
});
});
QUnit.test('using mermaid in requirejs', function (assert) {
var done = assert.async()
require(['mermaid'], function (mermaid) {
assert.ok(mermaid, 'mermaid is not null')
console.log(mermaid)
mermaid.init()
assert.equal(window.d3.selectAll('path')[0].length, 8,
'drew 8 paths')
done()
})
})
QUnit.load();
QUnit.start();
});
QUnit.load()
QUnit.start()
})

View File

@@ -1,9 +1,9 @@
/**
* Created by knut on 15-03-07.
*/
define('simple',function(){
var simple = {
data:'info'
};
return simple;
});
define('simple', function () {
var simple = {
data: 'info'
}
return simple
})