mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix unit test failures following mocha upgrade
This commit is contained in:
		@@ -217,7 +217,7 @@ describe("nodes api", function() {
 | 
				
			|||||||
                    if (module === "foo") {
 | 
					                    if (module === "foo") {
 | 
				
			||||||
                        return {
 | 
					                        return {
 | 
				
			||||||
                            name:"foo",
 | 
					                            name:"foo",
 | 
				
			||||||
                            nodes:[{id:123}]
 | 
					                            nodes:[{id:"123"}]
 | 
				
			||||||
                        };
 | 
					                        };
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -264,7 +264,7 @@ describe('LocalFileSystem', function() {
 | 
				
			|||||||
    it('should return an empty list of library objects',function(done) {
 | 
					    it('should return an empty list of library objects',function(done) {
 | 
				
			||||||
        localfilesystem.init({userDir:userDir}).then(function() {
 | 
					        localfilesystem.init({userDir:userDir}).then(function() {
 | 
				
			||||||
            localfilesystem.getLibraryEntry('object','').then(function(flows) {
 | 
					            localfilesystem.getLibraryEntry('object','').then(function(flows) {
 | 
				
			||||||
                flows.should.eql({});
 | 
					                flows.should.eql([]);
 | 
				
			||||||
                done();
 | 
					                done();
 | 
				
			||||||
            }).otherwise(function(err) {
 | 
					            }).otherwise(function(err) {
 | 
				
			||||||
                done(err);
 | 
					                done(err);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user