Add web front-end and fix API issues
This commit is contained in:
1 parent
45ca4de0ad
commit
a7524412f0
2571 files changed
+86998
-5
No files matched your search
+16
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
var test = require('tape');
|
||||
var parse = require('../').parse;
|
||||
|
||||
test('comment', function (t) {
|
||||
t.same(parse('beep#boop'), ['beep', { comment: 'boop' }]);
|
||||
t.same(parse('beep #boop'), ['beep', { comment: 'boop' }]);
|
||||
t.same(parse('beep # boop'), ['beep', { comment: ' boop' }]);
|
||||
t.same(parse('beep # > boop'), ['beep', { comment: ' > boop' }]);
|
||||
t.same(parse('beep # "> boop"'), ['beep', { comment: ' "> boop"' }]);
|
||||
t.same(parse('beep "#"'), ['beep', '#']);
|
||||
t.same(parse('beep #"#"#'), ['beep', { comment: '"#"#' }]);
|
||||
t.same(parse('beep > boop # > foo'), ['beep', { op: '>' }, 'boop', { comment: ' > foo' }]);
|
||||
t.end();
|
||||
});
|
||||
Reference in new issue
Block a user