mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 20:25:26 +00:00
Added setRelevantDate implementation along tests and added and fixed tests of setExpirationDate
This commit is contained in:
@@ -367,9 +367,16 @@ export default class PKPass extends Bundle {
|
||||
*/
|
||||
|
||||
setRelevantDate(date: Date): this {
|
||||
/**
|
||||
* @TODO implement
|
||||
*/
|
||||
if (date === null) {
|
||||
delete this[propsSymbol]["relevantDate"];
|
||||
return this;
|
||||
}
|
||||
|
||||
const parsedDate = processDate("relevantDate", date);
|
||||
|
||||
if (parsedDate) {
|
||||
this[propsSymbol]["relevantDate"] = parsedDate;
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user