-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclasses.test.js
More file actions
30 lines (26 loc) · 833 Bytes
/
classes.test.js
File metadata and controls
30 lines (26 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const AltSource = require('./index')
console.log(`Required AltSource`, AltSource)
let alt = new AltSource({
name: "AltSource.js Test",
identifier: "space.charliecat.altsource.test",
website: "https://github.com/0Charliecat/altsource.js#readme",
subtitle: "Altsource.js Test Source",
description: "beeb boop",
publisher: "0CharlieCat"
})
console.log('alt:', alt)
alt.addApp({
name: 'Test App',
bundleIdentifier: "space.charliecat.altsource.testapp",
version: "1.0",
versionDate: new Date(),
versionDescription: "Test app version 1.0",
downloadURL: "https://example.com/myapp_v1.1.ipa",
size: "100"
})
console.log('alt: after adding the app:', alt)
alt.addNewsItem({
title: "Hello from AltSource.js",
url: "http://localhost"
})
console.log('alt: after adding news:', alt)