[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

test[nodeJS] 020 Accessing to global agent

"020 Accessing to global agent with #globalAgent"
| agent |
agent := NodeJS http globalAgent.
agent isNil ifTrue: [
    ^self error: '020 GlobalAgent failed'
].
(agent isKindOf: NodeHTTPAgent) ifFalse:[
    self error: '020 Should be aNodeHTTPAgent'
].
self print: '020 Ok'.