File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ function EarlReport(options) {
36
36
'earl:mode' : { '@type' : '@id' } ,
37
37
'earl:test' : { '@type' : '@id' } ,
38
38
'earl:outcome' : { '@type' : '@id' } ,
39
- 'dc:date' : { '@type' : 'xsd:date' }
39
+ 'dc:date' : { '@type' : 'xsd:dateTime' } ,
40
+ 'doap:created' : { '@type' : 'xsd:date' }
40
41
} ,
41
42
'@id' : 'https://github.com/digitalbazaar/jsonld.js' ,
42
43
'@type' : [
@@ -61,16 +62,21 @@ function EarlReport(options) {
61
62
'foaf:name' : 'Dave Longley' ,
62
63
'foaf:homepage' : 'https://github.com/dlongley'
63
64
} ,
64
- 'dc:date' : {
65
- '@value' : today ,
66
- '@type' : 'xsd:date'
65
+ 'doap:release' : {
66
+ 'doap:name' : '' ,
67
+ 'doap:revision' : '' ,
68
+ 'doap:created' : today
67
69
} ,
68
70
'subjectOf' : [ ]
69
71
} ;
70
72
/* eslint-enable quote-props */
73
+ // FIXME: read this from somewhere
74
+ version = 'v3.0.1'
71
75
this . _report [ '@id' ] += '#' + this . id ;
72
76
this . _report [ 'doap:name' ] += ' ' + this . id ;
73
77
this . _report [ 'dc:title' ] += ' ' + this . id ;
78
+ this . _report [ 'doap:release' ] [ 'doap:name' ] = this . _report [ 'doap:name' ] + ' ' + version ;
79
+ this . _report [ 'doap:release' ] [ 'doap:revision' ] = version ;
74
80
}
75
81
76
82
EarlReport . prototype . addAssertion = function ( test , pass ) {
You can’t perform that action at this time.
0 commit comments