@ -223,7 +223,7 @@ const glob = async function (pattern, options) {
* @return {Array} of {String}s of full paths
*/
async function explode (paths, {accepts, debug}) {
async function explode(paths, {accepts, debug}) {
const list = async file => {
let path = file
let s
@ -189,12 +189,12 @@ test('support `now.json` files with Dockerfile', async t => {
})
test('throws when both `now.json` and `package.json:now` exist', async t => {
let err
let e
try {
await readMetadata(fixture('now-json-throws'), {quiet: true, strict: false})
} catch (e) {
err = e
} catch (err) {
e = err
}
t.is(err.name, 'Error')
t.pass(/refusing to proceed/i.test(err.message))
t.is(e.name, 'Error')
t.pass(/refusing to proceed/i.test(e.message))