Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RDF March

Slides: https://docs.google.com/presentation/d/1aPjtm-9iY18Cq7tvBP3AeJoWjifhM7pmuufoDEyyBJI/edit?usp=sharing

A simple Node.js calculator application with Jest tests.

Installation

npm install

Running Tests

# Run tests once
npm test

# Run tests in watch mode
npm run test:watch

# Run tests with coverage
npm run test:coverage

Usage

const calculator = require('./src/calculator');

console.log(calculator.add(2, 3));        // 5
console.log(calculator.subtract(5, 3));   // 2
console.log(calculator.multiply(3, 4));   // 12
console.log(calculator.divide(10, 2));    // 5

Project Structure

rdf-march/
├── src/
│   └── calculator.js    # Calculator module  
├── tests/
│   └── calculator.test.js  # Jest tests
├── package.json
└── README.md

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages