Skip to content

Commit ad10c1f

Browse files
committed
Revert "Fixes unit tests"
This reverts commit 3735750.
1 parent 54c6cc2 commit ad10c1f

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

tests/plenary/parser/parser_spec.lua

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,6 @@ describe('Parser', function()
245245
end_col = 6,
246246
}),
247247
},
248-
properties_items = {
249-
deadline = '<2021-05-20 Thu>',
250-
scheduled = '<2021-05-18>',
251-
closed = '[2021-05-21 Fri]',
252-
},
253248
tags = { 'WORK' },
254249
own_tags = { 'WORK' },
255250
category = 'work',
@@ -383,7 +378,6 @@ describe('Parser', function()
383378
own_tags = { 'WORK' },
384379
category = 'work',
385380
properties_items = {
386-
deadline = '<2021-05-10 11:00>',
387381
some_prop = 'some value',
388382
},
389383
properties_range = Range:new({
@@ -423,7 +417,7 @@ describe('Parser', function()
423417
}
424418
local parsed = File.from_content(lines, 'work')
425419
local section = parsed:get_section(1)
426-
assert.are.same({ items = { deadline = '<2021-05-10 11:00>' } }, section.properties)
420+
assert.are.same({ items = {} }, section.properties)
427421
end)
428422

429423
it('should parse properties only if its positioned after headline or planning date', function()
@@ -439,7 +433,7 @@ describe('Parser', function()
439433

440434
local parsed = File.from_content(lines, 'work')
441435
local headline = parsed:get_section(1)
442-
assert.are.same({ deadline = '<2021-05-10 11:00>' }, headline.properties.items)
436+
assert.are.same({}, headline.properties.items)
443437

444438
lines = {
445439
'* TODO Test orgmode :WORK:',
@@ -477,7 +471,7 @@ describe('Parser', function()
477471

478472
parsed = File.from_content(lines, 'work')
479473
headline = parsed:get_section(1)
480-
assert.are.same({ deadline = '<2021-05-10 11:00>', some_prop = 'some value' }, headline.properties.items)
474+
assert.are.same({ some_prop = 'some value' }, headline.properties.items)
481475
end)
482476

483477
it('should override headline category from property', function()
@@ -641,7 +635,6 @@ describe('Parser', function()
641635
own_tags = { 'WORK' },
642636
category = 'work',
643637
properties_items = {
644-
deadline = '<2021-05-10 11:00>',
645638
some_prop = 'some value',
646639
},
647640
properties_range = Range:new({

0 commit comments

Comments
 (0)