Uploaded image for project: 'TestBox'
  1. TESTBOX-127

Error instead of fail when expectation is in a

    Details

    • Type: Bug
    • Status: Resolved (View workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      CF 11

      Description

      Repro:

      component extends=testbox.system.basespec {
      
      	function run(){
      		describe("Replicating issue", function(){
      
      			it("demonstrates a baseline", function(){
      				expect(false).toBeTrue();
      			});
      
      			it("demonstrates the error", function(){
      				var results = [1,2,3];
      				results.each(function(result){
      					expect(false).toBeTrue();
      				});
      			});
      
      		});
      	}
      
      }
      

      When I run the code below I get the expected failure for the "demonstrates a baseline" test, but I get an error when running the "demonstrates the error" test. I'm guessing it's something to do with how CF raises exceptions in iteration functions?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lmajano Luis Majano
                Reporter:
                daccfml Adam Cameron
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: