"rollup": "^0.67.0",
"rollup-plugin-babel": "^4.0.3",
"rollup-plugin-filesize": "^5.0.1",
- "rollup-plugin-progress": "^0.4.0",
"rollup-plugin-uglify": "^6.0.0",
"svgdom": "latest"
},
import babel from 'rollup-plugin-babel'
import { uglify } from "rollup-plugin-uglify"
import filesize from 'rollup-plugin-filesize'
-import progress from 'rollup-plugin-progress'
const pkg = require('./package.json')
const buildDate = Date()
banner: headerLong
},
plugins: [
- progress(),
babel({
include: 'src/**'
}),
text.center(321, 567)
var box = text.bbox()
expect(+text.node.getAttribute('x') + box.width / 2).toBeCloseTo(321, 1)
- expect(text.y() + box.height / 2).toBeCloseTo(567)
+ expect(text.y() + box.height / 2).toBeCloseTo(567, 0)
})
})