You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
448 B
14 lines
448 B
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() |
|
})
|
|
|