mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-07-14 11:40:10 +00:00
27 lines
553 B
CoffeeScript
27 lines
553 B
CoffeeScript
should = require('should')
|
|
Session = require('../source/session')
|
|
|
|
describe 'Session', ->
|
|
|
|
session = new Session()
|
|
|
|
it 'should init', (done) ->
|
|
|
|
@timeout(5000)
|
|
|
|
session.init()
|
|
.then -> done()
|
|
.done()
|
|
|
|
it 'should have loaded properties', ->
|
|
|
|
session.salt.should.be.a.String
|
|
session.client.name.should.be.a.String
|
|
session.client.revision.should.be.a.String
|
|
|
|
session.token.should.be.a.String
|
|
session.country.should.be.an.Object
|
|
session.sessionId.should.be.a.String
|
|
session.lastUpdated.should.be.a.Number
|
|
|