week-1-assignment's Issues
Can there be automated test cases for times.js ?
in JS medium question 2 Times.js where you need to find the time require to calculate sums, can it also have automated jest tests?
Updation required in Test Case for Calculator.js - Hard Problem in 01-js
Before :
test("calculate division by zero", () => {
expect(() => calc.calculate("10 / 0")).toThrow(Error);
});
After :
test("calculate division by zero", () => {
expect(() => calc.calculate("10 / 0").value()).toThrow(Error);
});
I would recommend this changes as current code is not working even if error is thrown while checking for division by zero. i.e,
Below code is correct in my view, but still test case is failing.
divide(num) {
if (num === 0) throw new Error("NaN");
this.result /= num;
}
No testcase files found
- There are no testcases found in the repo.
- Please mention the testcases or change the instructions.
- It is creating panic attack for many as it is mentioned in the instructions that one should run test after they have finished the assignment.
- everyone is running the tests and freaking out because of the error.
Expenditure-analysis.js only allows a specific name for Total Price spent in output
In JS easy question 2 expenditure analysis, it requires a specific property name for the total amount in output object that is 'totalSpent' but the question doesn't hint it, if you make the entire program right and name the property something else it yields error and all test cases are passed on using the name 'totalSpent' in the output price but this isn't mentioned in question which tells to use 'total_amount_spent'
Remove .DS_Store
please remove .DS_Store
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.