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