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

GET A DEMO

"Interview Mocha has provided UNEECOPS with a veritable assessment platform with a comprehensive test library, online test platform, and intelligent reports. This made it easier for us to map different job openings with job-fit candidates and recruit faster."

Nisha Chandila, UNEECOPS,
Talent Acquisition Manager
Question

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?

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

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

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

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

Question

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""})

Answer
    • empty array

    • error that templates does not exist

    • undefined reference error

    • return 1 as output

Question

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?

Answer
    • obj.spy1.andCallFake(function() {
          expect(obj.spy2.calls.length).toBe(null);
      });

    • obj.spy1.andCallFake(function() {
      });

    • obj.spy1.andCallFake(function() {
          expect(obj.spy2.calls.length).toBe(0);
      });

    • obj.spy2.andCallFake(function() {
          expect(obj.spy1.calls.length).toBe(0);
      });

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 support@interviewmocha.com 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...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO