    /*

    Siesta 5.3.0
    Copyright(c) 2009-2019 Bryntum AB
    https://bryntum.com/contact
    https://bryntum.com/products/siesta/license

    */
    /**
    @class Siesta.Test.NodeJS
    @extends Siesta.Test

    A base class for testing a NodeJS code.

    */
    Class('Siesta.Test.NodeJS', {
        isa         : Siesta.Test,

        does        : [
            Siesta.Test.Observable
        ],

        methods : {

            addListenerToObservable : function (observable, event, listener, isSingle) {
                if (isSingle)
                    observable.once(event, listener)
                else
                    observable.addListener(event, listener)
            },

            removeListenerFromObservable : function (observable, event, listener) {
                observable.removeListener(event, listener)
            }
        }
    });