Add spec for constructor-less param
This commit is contained in:
		
					parent
					
						
							
								b444b35215
							
						
					
				
			
			
				commit
				
					
						a1209b69b3
					
				
			
		
					 2 changed files with 8 additions and 1 deletions
				
			
		| 
						 | 
					@ -34,6 +34,7 @@ describe('ipc module', function () {
 | 
				
			||||||
      assert.equal(a.foo.bar, 'baz')
 | 
					      assert.equal(a.foo.bar, 'baz')
 | 
				
			||||||
      assert.equal(a.foo.baz, false)
 | 
					      assert.equal(a.foo.baz, false)
 | 
				
			||||||
      assert.equal(a.bar, 1234)
 | 
					      assert.equal(a.bar, 1234)
 | 
				
			||||||
 | 
					      assert.equal(a.baz(Object.create(null)), 'hello')
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    it('should search module from the user app', function () {
 | 
					    it('should search module from the user app', function () {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										8
									
								
								spec/fixtures/module/no-prototype.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								spec/fixtures/module/no-prototype.js
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -1,4 +1,10 @@
 | 
				
			||||||
const foo = Object.create(null)
 | 
					const foo = Object.create(null)
 | 
				
			||||||
foo.bar = 'baz'
 | 
					foo.bar = 'baz'
 | 
				
			||||||
foo.baz = false
 | 
					foo.baz = false
 | 
				
			||||||
module.exports = {foo: foo, bar: 1234}
 | 
					module.exports = {
 | 
				
			||||||
 | 
					  foo: foo,
 | 
				
			||||||
 | 
					  bar: 1234,
 | 
				
			||||||
 | 
					  baz: function () {
 | 
				
			||||||
 | 
					    return 'hello'
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue