pxt-badge/test.ts

54 строки
1.2 KiB
TypeScript
Исходник Обычный вид История

2019-07-26 17:47:50 +03:00
// tests go here; this will not be compiled when this package is used as a library
2019-07-26 18:12:10 +03:00
badge.setName("Cortana")
2020-04-05 04:26:00 +03:00
badge.setCompany("Company")
badge.setLogo("Logo", 3);
2019-07-26 18:25:25 +03:00
// user config
2019-07-26 19:24:52 +03:00
badge.setSocial("https://www.linkedin.com/in/xyz/")
2019-07-26 18:25:25 +03:00
badge.setProgram({
days: [
{
title: "Day one",
weekday: "Monday",
monthday: 6
},
{
title: "Day two",
weekday: "Tuesday",
monthday: 7
},
{
title: "Day three",
weekday: "Wednesday",
monthday: 8
}
],
sessions: [
{
name: "Yadi",
presenter: "Yada",
info: "Yoda",
location: "WSCC:Room 608",
startTime: 1500,
endTime: 1600
},
{
name: "Mosi",
presenter: "Masa",
info: "Miso.",
location: "WSCC:Room 402",
startTime: 1600,
endTime: 1630
}
],
questions: [
{
text: "Did you like it?",
options: ["Yeah!", "Nah"]
}
]
})
2020-04-05 04:26:00 +03:00
storyboard.loaderBootSequence.register()
2019-07-26 18:25:25 +03:00
badge.start()