From 83536573d85a084c74d054ed4e4f90f1c6455c2a Mon Sep 17 00:00:00 2001 From: Erjan Gavalji Date: Thu, 29 Sep 2016 15:55:55 +0300 Subject: [PATCH] Fix some broken code snippets --- tests/app/console-tests.ts | 2 +- tests/app/data/observable-array-tests.ts | 6 +++--- tests/app/fetch-tests.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/app/console-tests.ts b/tests/app/console-tests.ts index f87aff7b2..5e287aefb 100644 --- a/tests/app/console-tests.ts +++ b/tests/app/console-tests.ts @@ -39,5 +39,5 @@ export var test_DummyTestForSnippetOnly4 = function () { export var test_DummyTestForSnippetOnly5 = function () { // >> console-trace console.trace(); - // << console-traceß + // << console-trace } \ No newline at end of file diff --git a/tests/app/data/observable-array-tests.ts b/tests/app/data/observable-array-tests.ts index ad0740668..fc53e8364 100644 --- a/tests/app/data/observable-array-tests.ts +++ b/tests/app/data/observable-array-tests.ts @@ -111,7 +111,7 @@ export var test_ObservableArray_joinShouldReturnStringWithAllItemsSeparatedWithD }; export var test_ObservableArray_popShouldRemoveTheLastElement = function () { - // >> observable-array-join-pop' + // >> observable-array-join-pop var array = new observableArrayModule.ObservableArray([1, 2, 3]); // >> (hide) var bindable = new bindableModule.Bindable(); @@ -119,7 +119,7 @@ export var test_ObservableArray_popShouldRemoveTheLastElement = function () { bindable.bind({ sourceProperty: "length", targetProperty: "testProperty" }, array); // << (hide) var result = array.pop(); - // << observable-array-join-pop' + // << observable-array-join-pop TKUnit.assert(result === 3 && array.length === 2, "ObservableArray pop() should remove last element!"); TKUnit.assert(bindable.get("testProperty") === array.length, "Expected: " + array.length + ", Actual: " + bindable.get("testProperty")); }; @@ -359,7 +359,7 @@ export var test_ObservableArray_spliceShouldRemoveSpecifiedNumberOfElementsStart bindable.bind({ sourceProperty: "length", targetProperty: "testProperty" }, array); // << (hide) var result = array.splice(1, 2); - // <, observable-array-splice + // << observable-array-splice TKUnit.assert(result.length === 2 && result[0] === "two" && array.length === 1 && array.getItem(0) === "one", "ObservableArray splice() should remove specified number of elements starting from specified index!"); TKUnit.assert(bindable.get("testProperty") === array.length, "Expected: " + array.length + ", Actual: " + bindable.get("testProperty")); diff --git a/tests/app/fetch-tests.ts b/tests/app/fetch-tests.ts index 0247b8015..ce09c9f02 100644 --- a/tests/app/fetch-tests.ts +++ b/tests/app/fetch-tests.ts @@ -24,7 +24,7 @@ export var test_fetch = function (done: (err: Error, res?: string) => void) { }; export var test_fetch_text = function (done: (err: Error, res?: string) => void) { - // >> fetch-string' + // >> fetch-string fetch("https://httpbin.org/get").then(response => { return response.text(); }).then(function (r) { // Argument (r) is string! // >> (hide) @@ -37,7 +37,7 @@ export var test_fetch_text = function (done: (err: Error, res?: string) => void) done(e); // << (hide) }); - // << fetch-string' + // << fetch-string }; export var test_fetch_json = function (done: (err: Error, res?: string) => void) {