mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-07-14 11:40:10 +00:00
30 lines
649 B
CoffeeScript
30 lines
649 B
CoffeeScript
Core = require '../source/core'
|
|
Methods = require '../source/methods'
|
|
Song = require '../source/models/song'
|
|
SongList = require '../source/models/songList'
|
|
|
|
core = new Core()
|
|
app = new Methods(core)
|
|
|
|
describe 'Methods', ->
|
|
|
|
# TODO: Move into the <before testing> section
|
|
before (done) ->
|
|
core.init().then ->
|
|
done()
|
|
|
|
it 'should just get playlist information', (done) ->
|
|
|
|
app.getPlaylistSongs(40354457).then (response) ->
|
|
console.log response
|
|
done()
|
|
|
|
###
|
|
|
|
it 'should get the playlist songs', (done) ->
|
|
|
|
app.getPlaylistSongs(40354457).then (response) ->
|
|
songs = new SongList(response.Songs)
|
|
done()
|
|
###
|