fur-shapes
Version:
Shapes for fur.
34 lines (27 loc) • 564 B
JavaScript
/**
* Test case for a.
* Runs with mocha.
*/
const a = require('../lib/a.js')
const mkdirp = require('mkdirp')
const fs = require('fs')
const assert = require('assert')
const tmpDir = __dirname + '/../tmp'
describe('a', function () {
before((done) => {
mkdirp.sync(tmpDir)
done()
})
after((done) => {
done()
})
it('A', (done) => {
let svg = a(512, 256, '#38E')
fs.writeFile(tmpDir + '/testing-a.svg', svg, (err) => {
assert.ifError(err)
done()
})
})
})
/* global describe, before, after, it */