Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Jasmine Testing Online Test

Topics Covered

  • Filters
  • Jasmine Spy
  • CSS testing
  • Functional Testing
  • Fake Calls
  • File Loading
  • Hover

Useful for hiring

  • Automation Testing Engineer- Jasmine
  • Full Stack Javascript Developer

Start hiring job-fit candidates using this assessment


"We are impressed by the caliber, depth, and breadth of the assessments provided by Interview Mocha. With Interview Mocha's online proctoring & powerful reports, we are able to hire quality candidates overcoming geographical barriers."

Megan Akhras, J'Excelle,Canada,
Co-founder & director

You are a newbie for jasmine and want to try the expect() API with multiple inputs in jasmine. Which of the following is the correct syntax to use multiple expects in jasmine?

    • expect(variable1 = 1 and variable2 = 2).toBeTruthy();

    • expect(variable1 == 1 && variable2 == 2).toBeTruthy();

    • expect(variable1).toEqual('');

    • @(:variable2).expect(variable1).toEqual('');


Given below is a spy test command in jasmine to mock values of an array. What does the following line return?

spyOn(Handlebars, 'templates').andReturn({""ResponseToSubscribers"": (obj) -> ""html""})

    • empty array

    • error that templates does not exist

    • undefined reference error

    • return 1 as output


You have defined two objects as spies with jasmine as follows:
spyOn(obj, 'spy1');
spyOn(obj, 'spy2');
Which of the following is the correct way to test that the two objects are called and also obj.spy1 is called first?

    • obj.spy1.andCallFake(function() {

    • obj.spy1.andCallFake(function() {

    • obj.spy1.andCallFake(function() {

    • obj.spy2.andCallFake(function() {

Test details:

Skill test on Jasmine testing enables employers to identify potential hires by evaluating working skills and job readiness. For this reason, an emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.

The assessment test on Jasmine testing contains MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, True or False.

Test Duration: 20 minutes

10 Application Questions

The online Jasmine test contains a combination of application and theory questions that helps you to evaluate technical as well as practical skills of candidates.

Test description:

Jasmine test is designed & developed by global subject matter experts (SME)s to assess the Jasmine testing skills of candidates - as per industry standards.

Jasmine is a behavior-driven development (BDD) framework for testing JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a DOM and it has a clean, obvious syntax so that you can easily write tests. You can run your browser tests as well as node.js tests on the Jasmine framework.

Thus, Jasmine online test helps recruiters & hiring managers to evaluate the expertise of candidates in jasmine testing of JavaScript code.

Jasmine test contains questions on following Topics:

  • Error Handling

  • API

  • Service Objects

  • Filters

  • Jasmine Spy

  • CSS testing

  • Functional Testing

  • Fake Calls

  • File Loading

  • Hover

To assess multiple skills in one go, we provide a facility of customizable assessments that help you in creating the tests for as per your specific needs.

The reports are generated instantly. Our hiring analytics will provide you with the detailed analysis of skills related strengths & weaknesses of the candidates that will help you in making right hiring decisions.

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates