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

Commit

Permalink
new: support metadata kind email
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Mayer authored and Florian Mayer committed Feb 19, 2022
1 parent facbc12 commit 27164cd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/convert.js

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

3 changes: 3 additions & 0 deletions spec/src/convert-question-spec.ls
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ describe \type ->
username = { type: \metadata, kind: 'Username' } |> convert-simple
expect(username.type).toBe(\username)

email = { type: \metadata, kind: 'Email' } |> convert-simple
expect(email.type).toBe(\email)

subscriberid = { type: \metadata, kind: 'Subscriber ID' } |> convert-simple
expect(subscriberid.type).toBe(\subscriberid)

Expand Down
1 change: 1 addition & 0 deletions src/convert.ls
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ metadata-type-conversion =
'End Time': \end
'Today': \today
'Username': \username
'Email': \email
'Subscriber ID': \subscriberid
'SIM Serial': \simserial
'Phone Number': \phonenumber
Expand Down

0 comments on commit 27164cd

Please sign in to comment.