Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
convert/bug: was not converting deviceid metadata types correctly.
Browse files Browse the repository at this point in the history
* resolves getodk/build#148.
  • Loading branch information
issa-tseng committed May 16, 2017
1 parent 93382b3 commit b10435e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/convert.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spec/src/convert-question-spec.ls
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe \type ->
expect(result.type).toBe(\barcode)

test \metadata ->
deviceid = { type: \metadata, kind: 'Device Id' } |> convert-simple
deviceid = { type: \metadata, kind: 'Device ID' } |> convert-simple
expect(deviceid.type).toBe(\deviceid)

start = { type: \metadata, kind: 'Start Time' } |> convert-simple
Expand Down
2 changes: 1 addition & 1 deletion src/convert.ls
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ location-type-conversion =
'Shape': \geoshape

metadata-type-conversion =
'Device Id': \deviceid
'Device ID': \deviceid
'Start Time': \start
'End Time': \end
'Today': \today
Expand Down

0 comments on commit b10435e

Please sign in to comment.