1
0
mirror of https://github.com/emkay/parser-6502.git synced 2024-12-21 15:29:19 +00:00
parser-6502/test/label.js
2016-10-11 17:01:15 -07:00

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'
})
})