-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LDEV-5095 test case for missing property exception on string
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
component extends="org.lucee.cfml.test.LuceeTestCase" skip="true" { | ||
|
||
function run( testResults , testBox ) { | ||
describe( title='LDEV-5095', body=function(){ | ||
|
||
it( title='missing property on string throws missing method?', body=function() { | ||
var str="lucee"; | ||
try { | ||
var test = str.lucee; | ||
} catch ( e ) { | ||
// throw lucee.runtime.exp.NativeException: No matching method for String.isLUCEE() found. there are no methods with this name. | ||
expect( e.type ).toBe( "expression", e.stacktrace ); | ||
} | ||
}); | ||
|
||
}); | ||
} | ||
|
||
} |