Git Product home page Git Product logo

hacktoberfest-2k18-katas's Introduction

Hacktoberfest 2018 Code Challenges

The point of this repository is to allow anyone to start contributing on a public repository.

Installation

You first need to fork the repository, then go in the directory and run:

# Install the dependencies
yarn

How to participate

  1. Find an issue that is not assigned yet
  2. Implement it so that it passes both the linting and the tests (check with yarn lint src/theFunction.js src/theNewKata.test.js and yarn test src/theFunction.test.js)
  3. Add a test case for a new function. You can use yarn generate <function_name> to create the two new files.
  4. Create your Pull Request
  5. Create an issue for your new feature

Rules

  • Each PR should contain exactly 3 files: your implementation, and 2 files for a new kata. All pull requests that do not follow this rule will be closed immediately.
  • If you take too much time to complete an issue/PR, it will be closed and de-assigned from you
  • Make sure your implementation passes the previous tests before opening a Pull Request.
  • Do not use any npm package, it's no fun

Files

Running yarn generate theFunction, would generate the two following files.

You only need to edit the test file, the actual implementation will be left to someone else!

theFunction.js:

export const theFunction = () => {
  // TO IMPLEMENT IN ANOTHER PR
};

theFunction.test.js:

import { theFunction } from './theFunction';

/*
 * Example of the assertions you can use for your tests:
 *
 * - Testing equality between the function's output and a constant:
 * expect(theFunction()).toEqual(123);
 *
 * - Testing that the function returns null:
 * expect(theFunction()).toBeNull();
 *
 * - Testing that the function returns a falsy value (eg. false, 0, "")
 * expect(theFunction()).toBeFalsy();
 *
 * - Testing that the function returns a truthy value (eg. true, 1, "abc")
 * expect(theFunction()).toBeTruthy();
 *
 * - Testing that the function throws
 * expect(() => { theFunction(); }).toThrow();
 */

describe('theFunction', () => {
  it('theFunction does this thing...', () => {
    // TODO Your own assertion here
  });

  it('theFunction does that other thing...', () => {
    // TODO Your own assertion here
  });

  it('theFunction does a very cool thing...', () => {
    // TODO Your own assertion here
  });
});

hacktoberfest-2k18-katas's People

Contributors

rgehan avatar delkhaz avatar sadarshannaiynar avatar timothepearce avatar cptjacky avatar zeroji avatar cesar-cb avatar mannutech avatar banb4n avatar lourdesr avatar lchaglla avatar bereninga avatar jaace avatar cyraxx avatar frizz925 avatar weichienhsu avatar audrius59 avatar antonstrand avatar lamnguyen2187 avatar tanyonghe avatar moogacs avatar qf-jonathan avatar aveselovalova avatar alinisarahmed avatar jrga03 avatar nai888 avatar kartikpandey2 avatar eldorandev avatar andersou avatar arealdeadone avatar

Watchers

James Cloos avatar Britton avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.