mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Merge pull request #4275 from kazuhitoyokoi/dev-fixtest4jsonnode
Fix test cases of JSON node
This commit is contained in:
		@@ -173,7 +173,7 @@ describe('JSON node', function() {
 | 
				
			|||||||
                        });
 | 
					                        });
 | 
				
			||||||
                        logEvents.should.have.length(1);
 | 
					                        logEvents.should.have.length(1);
 | 
				
			||||||
                        logEvents[0][0].should.have.a.property('msg');
 | 
					                        logEvents[0][0].should.have.a.property('msg');
 | 
				
			||||||
                        logEvents[0][0].msg.should.startWith("Unexpected token o");
 | 
					                        logEvents[0][0].msg.should.match(/^Unexpected token (o|'o')/);
 | 
				
			||||||
                        logEvents[0][0].should.have.a.property('level',helper.log().ERROR);
 | 
					                        logEvents[0][0].should.have.a.property('level',helper.log().ERROR);
 | 
				
			||||||
                        done();
 | 
					                        done();
 | 
				
			||||||
                    } catch(err) { done(err) }
 | 
					                    } catch(err) { done(err) }
 | 
				
			||||||
@@ -199,7 +199,7 @@ describe('JSON node', function() {
 | 
				
			|||||||
                        });
 | 
					                        });
 | 
				
			||||||
                        logEvents.should.have.length(1);
 | 
					                        logEvents.should.have.length(1);
 | 
				
			||||||
                        logEvents[0][0].should.have.a.property('msg');
 | 
					                        logEvents[0][0].should.have.a.property('msg');
 | 
				
			||||||
                        logEvents[0][0].msg.should.startWith("Unexpected token o");
 | 
					                        logEvents[0][0].msg.should.match(/^Unexpected token (o|'o')/);
 | 
				
			||||||
                        logEvents[0][0].should.have.a.property('level',helper.log().ERROR);
 | 
					                        logEvents[0][0].should.have.a.property('level',helper.log().ERROR);
 | 
				
			||||||
                        done();
 | 
					                        done();
 | 
				
			||||||
                    } catch(err) { done(err) }
 | 
					                    } catch(err) { done(err) }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user