mirror of
https://github.com/emkay/parser-6502.git
synced 2024-12-21 15:29:19 +00:00
11 lines
249 B
JavaScript
11 lines
249 B
JavaScript
const tap = require('tap')
|
|
const mona = require('mona')
|
|
const labelParser = require('../parsers/label')
|
|
|
|
tap.test('should parse a label', (t) => {
|
|
t.plan(1)
|
|
t.deepEqual(mona.parse(labelParser(), 'SOMETHING:\n'), {
|
|
label: 'SOMETHING'
|
|
})
|
|
})
|