tunnckoCore/resolve-plugins-sync

View on GitHub
fixtures/support.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict'

module.exports = (name, body) => (filename, opts) => {
  if (typeof filename === 'object') {
    opts = filename
    filename = undefined
  }
  return {
    name: name,
    body: body,
    opts: opts,
    filename: filename,
  }
}