@@ -245,11 +245,6 @@ describe('Parser', function()
245
245
end_col = 6 ,
246
246
}),
247
247
},
248
- properties_items = {
249
- deadline = ' <2021-05-20 Thu>' ,
250
- scheduled = ' <2021-05-18>' ,
251
- closed = ' [2021-05-21 Fri]' ,
252
- },
253
248
tags = { ' WORK' },
254
249
own_tags = { ' WORK' },
255
250
category = ' work' ,
@@ -383,7 +378,6 @@ describe('Parser', function()
383
378
own_tags = { ' WORK' },
384
379
category = ' work' ,
385
380
properties_items = {
386
- deadline = ' <2021-05-10 11:00>' ,
387
381
some_prop = ' some value' ,
388
382
},
389
383
properties_range = Range :new ({
@@ -423,7 +417,7 @@ describe('Parser', function()
423
417
}
424
418
local parsed = File .from_content (lines , ' work' )
425
419
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 )
427
421
end )
428
422
429
423
it (' should parse properties only if its positioned after headline or planning date' , function ()
@@ -439,7 +433,7 @@ describe('Parser', function()
439
433
440
434
local parsed = File .from_content (lines , ' work' )
441
435
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 )
443
437
444
438
lines = {
445
439
' * TODO Test orgmode :WORK:' ,
@@ -477,7 +471,7 @@ describe('Parser', function()
477
471
478
472
parsed = File .from_content (lines , ' work' )
479
473
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 )
481
475
end )
482
476
483
477
it (' should override headline category from property' , function ()
@@ -641,7 +635,6 @@ describe('Parser', function()
641
635
own_tags = { ' WORK' },
642
636
category = ' work' ,
643
637
properties_items = {
644
- deadline = ' <2021-05-10 11:00>' ,
645
638
some_prop = ' some value' ,
646
639
},
647
640
properties_range = Range :new ({
0 commit comments