Skip to content

Commit 91d4acd

Browse files
committed
remove tests for sequencing
1 parent 9179396 commit 91d4acd

File tree

2 files changed

+1
-80
lines changed

2 files changed

+1
-80
lines changed

README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ Let's break this down:
288288
get stored in `innerFunction`'s `name` and `lang` parameters.
289289

290290
This might look a little bit weird, but it generally makes sense to our
291-
intuition about scopes: inner things can see their parent outer things.
291+
intuition about scopes: inner things can see their parent outer things.
292292

293293
Note that currently, the values of the arguments being passed to `innerFunction`
294294
are part of the **definition** of `outer`. In order to change those values we
@@ -470,15 +470,6 @@ wrapAdjective("%")("a dedicated programmer") //=> "You are %a dedicated programm
470470

471471
Run `learn` to verify you've gotten this set of tests passing.
472472

473-
### Additional Practice in Lab-Driven Development for JavaScript Basics
474-
475-
Whew! That's a lot of recap with a lot of mind-bending stuff. Let's make sure
476-
that we review some of our easier basics.
477-
478-
The remainder of the tests ***are not*** new material. They're here to make
479-
sure you remember how to work with `Object`s and `Array`s full of functions.
480-
Use the tests to guide you in feeling confident working with functions.
481-
482473
## Conclusion
483474

484475
In this lesson, we've covered the basics of function declaration, invocation,

test/indexTest.js

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -44,74 +44,4 @@ describe("index.js", () => {
4444
expect(emphatic).to.equal("You are ||a dedicated programmer||!")
4545
});
4646
})
47-
48-
describe("defines an object called Calculator", function() {
49-
it("has a JavaScript Object called Calculator as a local variable", function() {
50-
expect(Calculator).to.be.a('object')
51-
})
52-
53-
describe("that has a function called add", function() {
54-
it("Calculator.add exists", function() {
55-
expect(Calculator.add).to.exist
56-
})
57-
58-
it("calculates 1 + 3", function() {
59-
expect(Calculator.add(1,3)).to.equal(4)
60-
})
61-
})
62-
63-
describe("that has a function called subtract", function() {
64-
it("Calculator.subtract exists", function() {
65-
expect(Calculator.subtract).to.exist
66-
})
67-
68-
it("calculates 1 - 3", function() {
69-
expect(Calculator.subtract(1,3)).to.equal(-2)
70-
})
71-
})
72-
73-
describe("that has a function called multiply", function() {
74-
it("Calculator.multiply exists", function() {
75-
expect(Calculator.multiply).to.exist
76-
})
77-
78-
it("calculates 1 * 3", function() {
79-
expect(Calculator.multiply(1,3)).to.equal(3)
80-
})
81-
})
82-
83-
describe("that has a function called divide", function() {
84-
it("Calculator.divide exists", function() {
85-
expect(Calculator.divide).to.exist
86-
})
87-
88-
it("calculates 10 / 5", function() {
89-
expect(Calculator.divide(10,5)).to.equal(2)
90-
})
91-
})
92-
})
93-
94-
describe("Defines a function called actionApplyer", function() {
95-
it("exists", function() {
96-
expect(actionApplyer).to.exist
97-
})
98-
99-
describe("receives two arguments: a starting integer and an array of functions", function() {
100-
it("returns the given starting point, unchanged, when the array is empty", function() {
101-
expect(actionApplyer(0, [])).to.equal(0)
102-
})
103-
104-
it("Given 13, returns 4 after being acted on by several functions", function() {
105-
let message = "13, multiplied by 2, added to 1000 and then modulo 7 is 4. Apply each function in the Array of functions on the given base (13) OR on the result of the use of the previous function to get this result"
106-
arrayOfTransforms = [
107-
function(a){ return a * 2 },
108-
function(a){ return a + 1000},
109-
function(a){ return a % 7 }
110-
]
111-
expect(actionApplyer(13, arrayOfTransforms)).to.equal(4, message)
112-
})
113-
})
114-
115-
116-
})
11747
})

0 commit comments

Comments
 (0)