Skip to content

Instantly share code, notes, and snippets.

@alexfaber2011
Last active August 29, 2015 14:25
Show Gist options
  • Save alexfaber2011/f90123d5e5fb1bc8375f to your computer and use it in GitHub Desktop.
Save alexfaber2011/f90123d5e5fb1bc8375f to your computer and use it in GitHub Desktop.
Clojurescript Debugging

Testing Results

3149a7b23a52abdd42f6e37c7b5ce5eaa71a47a8 - Localize both cli and cljs code

ERROR in (icm-anon-service.core-test/test-home) (:)
Uncaught exception, not in assertion.
expected: nil
  actual:
TypeError: 'null' is not an object (evaluating 'f.cljs$lang$maxFixedArity')
    at target/test.js:42883
    at cljs$core$apply (target/test.js:42866)
    at target/test.js:87801
    at icm_anon_service$core$t_SINGLEQUOTE_ (target/test.js:87797)
    at target/test.js:87910
    at target/test.js:64029
    at reagent$impl$util$render_component (target/test.js:61704)
    at target/test.js:64031
    at reagent$core$render (target/test.js:64018)
    at icm_anon_service$core_test$with_mounted_component (target/test.js:89262)
    at icm_anon_service$core_test$test_home_test (target/test.js:89336)
    at target/test.js:88923
    at cemerick$cljs$test$test_function (target/test.js:88884)
    at target/test.js:89016
    at cemerick$cljs$test$default_fixture (target/test.js:88720)
    at target/test.js:89018
    at cemerick$cljs$test$default_fixture (target/test.js:88720)
    at target/test.js:89036
    at cemerick$cljs$test$test_all_vars (target/test.js:88953)
    at target/test.js:89075
    at cemerick$cljs$test$test_ns (target/test.js:89055)
    at target/test.js:89148
    at target/test.js:89172
    at target/test.js:42889
    at cljs$core$apply (target/test.js:42866)
    at target/test.js:89189
    at cemerick$cljs$test$run_all_tests (target/test.js:89178)
    at phantomjs://webpage.evaluate():2
    at phantomjs://webpage.evaluate():8
    at phantomjs://webpage.evaluate():8

Ran 1 tests containing 1 assertions.
Testing complete: 0 failures, 1 errors.
Subprocess failed

Error Continues until commit below

b77f54c7b6649d6bcf7a4bf680f7386d562aca80 - Actually create users, devices, and subscriptions

ERROR in (icm-anon-service.core-test/test-home) (:)
Uncaught exception, not in assertion.
expected: nil
  actual:
Error: No protocol method IDeref.-deref defined for type undefined:
    at target/test.js:41447
    at cljs$core$_deref (target/test.js:41450)
    at cljs$core$deref (target/test.js:44212)
    at icm_anon_service$core$home_page (target/test.js:82806)
    at icm_anon_service$core_test$test_home_test (target/test.js:84197)
    at target/test.js:83832
    at cemerick$cljs$test$test_function (target/test.js:83793)
    at target/test.js:83925
    at cemerick$cljs$test$default_fixture (target/test.js:83629)
    at target/test.js:83927
    at cemerick$cljs$test$default_fixture (target/test.js:83629)
    at target/test.js:83945
    at cemerick$cljs$test$test_all_vars (target/test.js:83862)
    at target/test.js:83984
    at cemerick$cljs$test$test_ns (target/test.js:83964)
    at target/test.js:84057
    at target/test.js:84081
    at target/test.js:50519
    at cljs$core$apply (target/test.js:50496)
    at target/test.js:84098
    at cemerick$cljs$test$run_all_tests (target/test.js:84087)
    at phantomjs://webpage.evaluate():2
    at phantomjs://webpage.evaluate():8
    at phantomjs://webpage.evaluate():8

Ran 1 tests containing 1 assertions.
Testing complete: 0 failures, 1 errors.
Subprocess failed

Error Continues until commit below

01db9290bd27d0f42d831d267f29124ff91a16c7 - Document route structure.

Not found:  <div data-reactid=".0">
    <form id="sign-up-form" class="form-horizontal" data-reactid=".0.0">
        <div class="form-group" data-reactid=".0.0.0"><label for="phone-number" class="control-label col-sm-3"
                                                             data-reactid=".0.0.0.0"><span data-reactid=".0.0.0.0.0">SMS Number</span><span
                class="text-danger" data-reactid=".0.0.0.0.1">*</span></label>

            <div class="col-sm-9" data-reactid=".0.0.0.1"><input type="text" id="phone-number" name="phone-number"
                                                                 placeholder="SMS Number" required=""
                                                                 class="form-control" value=""
                                                                 data-reactid=".0.0.0.1.0"></div>
        </div>
        <div class="form-group" data-reactid=".0.0.1"><label for="notification-days" class="control-label col-sm-3"
                                                             data-reactid=".0.0.1.0">Stop After Days</label>

            <div class="col-sm-9" data-reactid=".0.0.1.1"><input min="0" placeholder="Number of Days"
                                                                 name="notification-days" type="text" max="10"
                                                                 id="notification-days" class="form-control" value="3"
                                                                 data-reactid=".0.0.1.1.0"></div>
        </div>
        <div class="form-group" data-reactid=".0.0.2">
            <div class="col-sm-offset-3 col-sm-9" data-reactid=".0.0.2.0"><span data-reactid=".0.0.2.0.0">By clicking Sign Up I agree to Singlewire's </span><a
                    href="" data-reactid=".0.0.2.0.1">Terms and Conditions</a><span data-reactid=".0.0.2.0.2"> for receiving notifications.</span>
            </div>
        </div>
        <div class="form-group" data-reactid=".0.0.3">
            <div class="col-sm-offset-3 col-sm-9" data-reactid=".0.0.3.0">
                <button type="submit" class="btn btn-default" data-reactid=".0.0.3.0.0">Sign Up</button>
            </div>
        </div>
    </form>
</div>

FAIL in (icm-anon-service.core-test/test-home) (:)
expected: (found-in #"Welcome to" div)
  actual: (not (found-in #"Welcome to" #<[object HTMLDivElement]>))

Everything works until commit above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment