Code Monkey home page Code Monkey logo

busted-tstl's People

Contributors

hazzard993 avatar qeffects avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

busted-tstl's Issues

spy.clear() and spy.revert() need "self" parameter

Hello,

I ran into an issue today using the TypeScript/Busted method spy.revert(); the generated lua code is spy.revert() but actually needs to be spy:revert() as noted here. A quick change in the busted.d.ts file of revert: (this: void) => void; to revert: () => void; (and likewise for clear) fixes the issue.

Thank you for this wonderful tool!

Assertions definitions missing "/** @noSelfInFile */" at start of files?

Not sure if it is part of my active project setup, but I needed to manually add /** @noSelfInFile */ to the top of the definitions within assertions/, e.g.:

/** @noSelfInFile */
declare namespace assert {

In order for my busted tests to run correctly. Calls like assert.are.equals(foo, bar) were receiving a self parameter as the first argument, and comparing that to the first value passed in, which obviously weren't equal. Manually adding the no self in file annotations resolved the issue.

Is there an expected configuration for the calling project that is required for these definitions to work without modification?

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.