Comments (6)
I imagine that most of the discrepancies will be that it's a superior implementation of MiniMock. Hopefully one day the game will update to the 2023 release too.
I have a release here: https://www.greyrepo.xyz/posts/unit-testing-mocking-library
The example is a bit fatty but you should be able to extract what you need - if not, let me know and I should be able to give you a minimum sample sometime tomorrow.
from greybel-js.
I may have more information: It does seem that globals such as include_lib
are also injected into locals
- which is not the case in GreyHack. Could this be the cause of the problem?
from greybel-js.
That might be a bug then. I'll take a look as soon as I have time. Thanks for reporting.
Also just a side note the interpreter which is used by greybel is not actually the same as the MiniScript interpreter therefore there might some discrepancies compared to how MiniScript/GreyScript works. But since this is supposed to emulate the original behavior I'll try to fix those issues. So if you find any more discrepancies in the future feel free to create more issues. Anyway just a heads up ;)
from greybel-js.
Alright I found the culprit. I have a PR ready which going to be merged soonish #109
Do you have an example code with your mock library where you mock a function? Just for testing.
from greybel-js.
Alright the PR got merged. It worked for me while testing. I'll close this ticket as soon as you can confirm that it works for you as well.
from greybel-js.
Replacement of globals also working fine now!
from greybel-js.
Related Issues (17)
- Save Ingame Information (greybel-proxy obfuscated) HOT 3
- Issue if line is longer than maxChars allowed in installer HOT 1
- Can import_code have an absolute path? HOT 2
- Enhance installer with auto compile HOT 6
- Support MiniScript files (.ms) HOT 1
- save/build request HOT 4
- Message-Hook sync sometimes open unusable Terminal window HOT 1
- Node 16.10 doesn't work HOT 3
- Message-Hook does not sync installer and auto compile HOT 1
- Unexpected parameter when declaring functions with specific argument names HOT 1
- Envar not working HOT 7
- Misbehavior in the built-in range function HOT 2
- List can be different even if the same HOT 2
- gitbash win10 tty issue HOT 1
- TextMesh Pro feature not showing color HOT 4
- Import assertions is used even though not supported by 16.13 HOT 1
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.
from greybel-js.