Predict the output of the below code snippet.

describe("Jasmine suite",function(){

let a=10
let b=20
beforeEach(){
if(a<b)
 throw "Exception"
 }

it("--Spec 1",function(){
  console.log("Spec 1")
})
})

Spec 1

Jasmine Suite - -Spec

throws an exception and suspends the execution of spec.

throws an exception but still executes the "it" block Spec 1

Verified Answer
Correct Option - c

To get all Infosys Certified Java Script Protractor Tester Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in