Giter VIP home page Giter VIP logo

tddbin-frontend's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tddbin-frontend's Issues

Answers of your exercises

Hello there,
I have learned ES6 recently and I found your site which helped me a lot. However when I used your site to study ES6 sometimes it was really hard for me to get correct answers.
So I writed down a part of answers in my Github Gist and I'll update it as soon as I can.
Hope your guys will like it.

es6 linting bug: destructuring named parameters with default values

Test executes and passes successfully, but linter gives warning message:

Expected "," and instead saw "="
Expected an identifier and instead saw "0"

on lines with constructor parameters.

   describe('es6 parameters', function() {  
        it('constructor destructuring optional object with default values', function() {
    
            class Vector {
                constructor ({x = 0, y = 0} = {}) {
                  this.x = x
                  this.y = y
                }
            }
  
            class VisibleObject extends Vector {
              constructor ({x = 0, y = 0, opacity = 1} = {}) {
                  super({x, y})
                  this.opacity = opacity
                }
            }

            let vo1 = new VisibleObject({x: 10, y: 15})
            let vo2 = new VisibleObject()
    
            assert.equal(co1.x, 10);
            assert.equal(co1.y, 15);
            assert.equal(co1.opacity, 1);
            assert.equal(co2.x, 0);
            assert.equal(co2.y, 0);
            assert.equal(co2.opacity, 1);
        });
    });

Fix recursive function definition exploit

If a function is defined like let foo = () => foo() and then called foo(), the site lags in an infinite loop, some maximum stack reached error should be displayed perhaps instead?

Render output of calls to console.* on tddbin

It would be nice for beginners to have a simple way to show messages or output in tddbin, without having to resort to the Developer Console of their browsers.

A proposal could be to temporarily replace window.console with a custom object that captures calls to e.g. console.log or console.dir and displays them below of the test results.

Sample Mockup of capturing console output

ES6-Linting doesn't work at all

This is a generalization of #34. Linting seems to be broken for ES6+ syntax in general. Here is a screenshot, showing that the "const" keyword is not recognized (as an example).

linting_bug

arrow function binding test 2

Seems like the test should be assert.strictEqual(fn.call(anotherObj), bound);, the same as test one, since you are proving that a new context can't be provided.

iterator - string - test description is wrong

The last test on the iterator - string kata is wrong, i think it should say done=true, that's also what the assert ask for...

Great project by the way, would love to hear if you need any help

Page does not load due to `s.default` `TypeError`

Steps to reproduce

Open http://tddbin.com/

Actual result

Browser window stays emtpy. Console prompts the following error.

Uncaught TypeError: s.default is not a function
    at Object.n.196.atomic (index.min.js:4)
    at o (index.min.js:1)
    at index.min.js:1
    at Object.n.204../_aceDefaultShortcuts (index.min.js:4)
    at o (index.min.js:1)
    at e (index.min.js:1)
    at index.min.js:1

Expected result

Start tddbin ;)

Make tddbin tablet compatible

on iPad it does not work :( I'm not in safari private mode (test results are rendered)

  • if there are many test, it is impossible to scroll to see all of them
  • Cursor movements are sporadic
  • UI is broken see attachment
    img_0990

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.