diff options
Diffstat (limited to '.config/pretest.js')
-rw-r--r-- | .config/pretest.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.config/pretest.js b/.config/pretest.js index 23b989e..0e6ecb7 100644 --- a/.config/pretest.js +++ b/.config/pretest.js @@ -1,15 +1,17 @@ /* global XMLHttpRequest */ 'use strict' -function get (uri) { +function get(uri) { var xhr = new XMLHttpRequest() xhr.open('GET', uri, false) xhr.send() - if (xhr.status !== 200) { console.error('SVG.js fixture could not be loaded. Tests will fail.') } + if (xhr.status !== 200) { + console.error('SVG.js fixture could not be loaded. Tests will fail.') + } return xhr.responseText } -function main () { +function main() { var style = document.createElement('style') document.head.appendChild(style) style.sheet.insertRule(get('/fixtures/fixture.css'), 0) |