﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28929	Incorrect example JS QUnit test	Jan Fabry	Junji Wei	"[https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/javascript/#writing-tests The example QUnit test code] in the ""Contributing"" part of the documentation uses the wrong kind of assertion. Meta-meta I think, so not important, but it's still an error :-)

{{{
...
    assert.equal($('.button').length === 1);
...
}}}

The `assert.equal` should either be `assert.ok`, or it should be `assert.equal($('.button').length, 1)` (or `assert.strictEqual` if you want the exact equivalent).

It's also in QUnit 1 format, while Django upgraded to QUnit 2 in https://github.com/django/django/pull/7715, which has a different syntax."	Bug	closed	Documentation	2.0	Normal	fixed			Accepted	1	0	0	0	0	0
