Skip to content

Commit

Permalink
chore: update curriculum helpers (#1172)
Browse files Browse the repository at this point in the history
* chore: update curriculum helpers

* debug: log caught errors from helpers

* feat: update to 2.0.2

* help

* is this the real life?

* Revert "is this the real life?"

This reverts commit e3172ee.

* Revert "help"

This reverts commit 3c1538e.

* chore: use this

* chore: chore chore chore chore
  • Loading branch information
Sembauke authored Jan 22, 2024
1 parent e42669a commit 66d5c19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mobile-app/lib/ui/views/learn/test_runner.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'dart:convert';

import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'package:freecodecamp/app/app.locator.dart';
import 'package:freecodecamp/enums/ext_type.dart';
Expand Down Expand Up @@ -89,6 +88,7 @@ class TestRunner extends BaseViewModel {
encoding: Encoding.getByName('utf-8').toString(),
);
}

return document.outerHtml;
}

Expand Down Expand Up @@ -191,7 +191,7 @@ class TestRunner extends BaseViewModel {
String tail = challenge.files[0].tail ?? '';

return '''<script type="module">
import * as __helpers from "https://unpkg.com/@freecodecamp/curriculum-helpers@1.2.0/dist/index.js";
import * as __helpers from "https://www.unpkg.com/@freecodecamp/[email protected].3/dist/index.mjs";
const code = `$code`;
const doc = new DOMParser().parseFromString(code, 'text/html');
Expand Down

0 comments on commit 66d5c19

Please sign in to comment.