Sha256: 6e47147f7b26ca85d23ab8b4d25e8bf93eb8a7562472affd1d54d11181018c32

Contents?: true

Size: 448 Bytes

Versions: 9

Compression:

Stored size: 448 Bytes

Contents

const {createMacro} = require('../')

test('throws error if it is not transpiled', () => {
  const untranspiledMacro = createMacro(() => {})
  expect(() =>
    untranspiledMacro({source: 'untranspiled.macro'}),
  ).toThrowErrorMatchingSnapshot()
})

test('attempting to create a macros with the configName of options throws an error', () => {
  expect(() =>
    createMacro(() => {}, {configName: 'options'}),
  ).toThrowErrorMatchingSnapshot()
})

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
disco_app-0.18.0 test/dummy/node_modules/babel-plugin-macros/dist/__tests__/create-macros.js
disco_app-0.18.2 test/dummy/node_modules/babel-plugin-macros/dist/__tests__/create-macros.js
jester-data-8.0.0 node_modules/babel-plugin-macros/dist/__tests__/create-macros.js
ezii-os-5.2.1 node_modules/babel-plugin-macros/dist/__tests__/create-macros.js
ezii-os-2.0.1 node_modules/babel-plugin-macros/dist/__tests__/create-macros.js
ezii-os-1.1.0 node_modules/babel-plugin-macros/dist/__tests__/create-macros.js
ezii-os-1.0.0 node_modules/babel-plugin-macros/dist/__tests__/create-macros.js
ezii-os-0.0.0.1.0 node_modules/babel-plugin-macros/dist/__tests__/create-macros.js
ezii-os-0.0.0.0.1 node_modules/babel-plugin-macros/dist/__tests__/create-macros.js