Skip to content

Commit

Permalink
Merge pull request dimagi#34283 from dimagi/jls/do-we-need-affix
Browse files Browse the repository at this point in the history
Removed jasmine-fixture dependency
  • Loading branch information
orangejenny authored Mar 18, 2024
2 parents 090a403 + 7378e42 commit 91e075c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use strict';
/* global affix */
/* eslint-env mocha */
hqDefine("cloudcare/js/form_entry/spec/web_form_session_spec", function () {
describe('WebForm', function () {
Expand Down Expand Up @@ -83,15 +82,6 @@ hqDefine("cloudcare/js/form_entry/spec/web_form_session_spec", function () {
);

beforeEach(function () {
// Setup HTML
try {
affix('input#submit');
affix('#content');
} catch (e) {
// temporarily catch this error while we work out issues running
// mocha tests with grunt-mocha. this passes fine in browser
}

// Setup Params object
params = {
form_url: window.location.host,
Expand Down Expand Up @@ -280,15 +270,6 @@ hqDefine("cloudcare/js/form_entry/spec/web_form_session_spec", function () {
);

beforeEach(function () {
// Setup HTML
try {
affix('input#submit');
affix('#content');
} catch (e) {
// temporarily catch this error while we work out issues running
// mocha tests with grunt-mocha. this passes fine in browser
}

formJSON = {
form_url: window.location.host,
onerror: sinon.spy(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
{% block dependencies %}
{% include "formplayer/dependencies.html" %}
<script src="{% static 'select2/dist/js/select2.full.min.js' %}"></script>
<script src="{% static 'jasmine-fixture/dist/jasmine-fixture.js' %}"></script>
{% endblock %}

{% block mocha_tests %}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@
"grunt-cli": "1.4.3",
"grunt-contrib-watch": "1.1.0",
"grunt-mocha": "1.2.0",
"jasmine-fixture": "2.0.0",
"lodash": "4.17.21",
"mocha": "9.2.2",
"mocha-headless-chrome": "4.0.0",
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3012,11 +3012,6 @@ isstream@~0.1.2:
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=

[email protected]:
version "2.0.0"
resolved "https://registry.yarnpkg.com/jasmine-fixture/-/jasmine-fixture-2.0.0.tgz#b6d0c5a3bb4834d23dd137464ef96f04f93bbd60"
integrity sha1-ttDFo7tINNI90TdGTvlvBPk7vWA=

[email protected]:
version "2.2.0"
resolved "https://registry.yarnpkg.com/jquery-color/-/jquery-color-2.2.0.tgz#2596bb782b69d9368b7840e6b3fe1e70fdd821c3"
Expand Down

0 comments on commit 91e075c

Please sign in to comment.