Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8497295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:05:24+00:00 2026-06-11T00:05:24+00:00

I am looking into starting some client-side testing, but I can’t seem to think

  • 0

I am looking into starting some client-side testing, but I can’t seem to think of how to properly use qunit. ALl of the documentation examples have unit tests such as
ok( 1 == "1", "Passed!" );

Do we reference HTML in our project or re-write sections of the HTML mimicking it?

Do re reference real Javascript functions or do we rewrite similar functions?

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:05:25+00:00Added an answer on June 11, 2026 at 12:05 am

    I have typically used it to test any client side JavaScript written for a project. Some of the JavaScript may have have public methods that make it easy to test directly. This should be easy to get as a unit.

    Typically a lot of JavaScript using jQuery will be event driven. For example, say you have some JavaScript that sends an AJAX call to a server when a user clicks a link with the id of “send-ajax”.

    What I would typically do is write out a test that mocks out $.ajax, then creates a link with the ID of “send-ajax”, then simulate a user click, then test that the mocked $.ajax method was called.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I looking into making a kind of robot testing browser. Like Selenium, but one
I'm starting up looking into doing some machine translation of search queries, and have
Im looking into to starting to do some AI programming especially aiming at robots.
By looking into the Open JPA website i've found that i can log the
I'm looking for some high-level recommendations for how to implement a project I'm starting
Ahoy! I've been looking into updating some old test code in an attempt to
I'm starting a new project in Wpf, and am now looking into using Prism.
Ideally, and you will think I am crazy, I can code some basic logic
I'm just starting to dive into some basic Android development and have been experimenting
I'm doing some due diligence into a project whereby a user can very heavily

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.