src/aria/jsunit/Assert.js
function () {
                if (this._overriddenClasses != null) {
                    for (var i in this._overriddenClasses) {
                        var clsInfos = this._overriddenClasses[i];

                        // restore the global classpath to point to the original
                        var ns = Aria.nspace(clsInfos.clsNs);
                        ns[clsInfos.clsName] = clsInfos.initialClass;

                        // also restore require cache
                        var initialClasspath = clsInfos.clsNs + "." + clsInfos.clsName;
                        var cacheKey = Aria.getLogicalPath(initialClasspath, ".js", true);
                        require.cache[cacheKey] = clsInfos.cachedModule;
                    }
                    this._overriddenClasses = null;
                }
            }
function () {
                if (this._overriddenClasses != null) {
                    for (var i in this._overriddenClasses) {
                        var clsInfos = this._overriddenClasses[i];

                        // restore the global classpath to point to the original
                        var ns = Aria.nspace(clsInfos.clsNs);
                        ns[clsInfos.clsName] = clsInfos.initialClass;

                        // also restore require cache
                        var initialClasspath = clsInfos.clsNs + "." + clsInfos.clsName;
                        var cacheKey = Aria.getLogicalPath(initialClasspath, ".js", true);
                        require.cache[cacheKey] = clsInfos.cachedModule;
                    }
                    this._overriddenClasses = null;
                }
            }
function ( ) { if ( this . _overriddenClasses != null ) { for ( var i in this . _overriddenClasses ) { var clsInfos = this . _overriddenClasses [ i ] ; // restore the global classpath to point to the original var ns = Aria . nspace ( clsInfos . clsNs ) ; ns [ clsInfos . clsName ] = clsInfos . initialClass ; // also restore require cache var initialClasspath = clsInfos . clsNs + "." + clsInfos . clsName ; var cacheKey = Aria . getLogicalPath ( initialClasspath , ".js" , true ) ; require . cache [ cacheKey ] = clsInfos . cachedModule ; } this . _overriddenClasses = null ; } }
Reset overridden classes.
Reset overridden classes .