Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "jasmine"
-
Hi, I am a Javascript apprentice. Can you help me with my project?
- Sure! What do you need?
Oh, it’s very simple, I just want to make a static webpage that shows a clock with the real time.
- Wait, why static? Why not dynamic?
I don’t know, I guess it’ll be easier.
- Well, maybe, but that’s boring, and if that’s boring you are not going to put in time, and if you’re not going to put in time, it’s going to be harder; so it’s better to start with something harder in order to make it easier.
You know that doesn’t make sense right?
- When you learn Javascript you’ll get it.
Okay, so I want to parse this date first to make the clock be universal for all the regions.
- You’re not going to do that by yourself right? You know what they say, don’t repeat yourself!
But it’s just two lines.
- Don’t reinvent the wheel!
Literally, Javascript has a built in library for t...
- One component per file!
I’m lost.
- It happens, and you’ll get lost managing your files as well. You should use Webpack or Browserify for managing your modules.
Doesn’t Javascript include that already?
- Yes, but some people still have previous versions of ECMAScript, so it wouldn’t be compatible.
What’s ECMAScript?
- Javascript
Why is it called ECMAScript then?
- It’s called both ways. Anyways, after you install Webpack to manage your modules, you still need a module and dependency manager, such as bower, or node package manager or yarn.
What does that have to do with my page?
- So you can install AngularJS.
What’s AngularJS?
- A Javascript framework that allows you to do complex stuff easily, such as two way data binding!
Oh, that’s great, so if I modify one sentence on a part of the page, it will automatically refresh the other part of the page which is related to the first one and viceversa?
- Exactly! Except two way data binding is not recommended, since you don’t want child components to edit the parent components of your app.
Then why make two way data binding in the first place?
- It’s backed up by Google. You just don’t get it do you?
I have installed AngularJS now, but it seems I have to redefine something called a... directive?
- AngularJS is old now, you should start using Angular, aka Angular 2.
But it’s the same name... wtf! Only 3 minutes have passed since we started talking, how are they in Angular 2 already?
- You mean 3.
2.
- 3.
4?
- 5.
6?
- Exactly.
Okay, I now know Angular 6.0, and use a component based architecture using only a one way data binding, I have read and started using the Design Patterns already described to solve my problem without reinventing the wheel using libraries such as lodash and D3 for a world map visualization of my clock as well as moment to parse the dates correctly. I also used ECMAScript 6 with Babel to secure backwards compatibility.
- That’s good.
Really?
- Yes, except you didn’t concatenate your html into templates that can be under a super Javascript file which can, then, be concatenated along all your Javascript files and finally be minimized in order to reduce latency. And automate all that process using Gulp while testing every single unit of your code using Jasmine or protractor or just the Angular built in unit tester.
I did.
- But did you use TypeScript?36 -
In the last one and a half days I optimized our Angular UnitTests. There‘re written with Karma and Jasmine. Before the optimization they needed ten minutes for around 400 tests. Now the same tests are executed in 12 seconds.4
-
Shit Developers say:
Fuck you Jasmine and your camelCase
I’ve been wrestling cucumbers all day
Oh no all the cucumbers are broken
In a fit of refactoring madness I have gone and changed a lot
Did you seriously just give ME nil?... No!
If the shit sticks, then we put nice paint on it
Fucking red dot motherfucker (Ben and his failing specs)
You know what we don’t do often..kill each others builds. Kill them and reschedule for later. Mwahaha ha ha.
This build is going to be so rad...(5mins later)...Ok this is not going to pass..I can feel it in my waters!
Can i do that in a digital way or do i have to move my meaty body downstairs to find him?
All the donkeys have be out the gate by sundown
God, imagine if you could patent mathematical solutions
actually, I wouldn't be surprised if you can in the states "no, you can't use a laplace transform, you haven't got the rights, you have to use a less accurate transform on your matrices"
ooooo a boolean that's phrased in the negative, my favourite for code review destruction!
Fuck the police i'll call the object here
Web RTC - its super easy, all you have to do is..probably some hard stuff
I want to go to that conference so I can start arguments with dickheads about semicolons. Just for fun.
This this is not the same as that this.
Can’t come to work I can’t find any clothes. It’s best for everyone if I just don’t come in. ...2 hours later... Yeah my clothes were just in the other room and i couldn’t be fucked moving
(OH about bad bug reports) - you know when they are all like oh joogly joogly doesn’t doodle doodle and it should wobbly doodle you know? and im all like fuck i don’t know any of that shit you are talking about.
Him: "I don’t like it, it’s against REST convention its so 2006 that my eyes are bleeding. As a privileged white male i feel entitled to complain about this." Me: "you. were. eleven in 2006
Source: Kellective Github2 -
<rant>
I was once a pure server side developer. Then came full stack development. So in order to keep up with the competition, I had to brave through front-end development.
But goddamn javascript, make up your mind between functions, and “Objects”.
Also variable visibility. Goddamnit. I thought ES6 was widely supported. I was happy doing const and let bbut goddamn testing frameworks, grunt and shit. Can’t make up it’s mind to support it unitedly.
And lastly, IE. Goddamn it, why the fuck are you not supporting Promise by default. We’re fucking 2017. [insert slowpoke meme]
</rant>
One good thing though, I like the library vuejs.
Bad thing is, this is just the beginning of a much more upcoming headache.4 -
My Test-Suite with karma and jasmine, they saved my ass multiple times. Wouldn't have noticed so many things at rewriting without the tests.
-
1. I wish you can help me find my Dev Jasmine
2. I wish she comes with Dev Abu/Iago
3. I wish you can be my friend Dev Genie
-
NodeJS’s transition from CommonJS is still a bit of a mess. Jest is the most used unit testing tool, but you need to fondle its balls to get it to work with ESM. Jasmine is the only major testing framework to support ESM out of the box. Luckily, jasmine is actually really nice.4
-
Why are there so many testing framworks for JavaScript? Jasmine, mocha, buster ... and for spies, stubs and mocks, there is sinon and for assertions, there is chai. And oh you can record entire external api calls with nock and whatever else I forgot. I am a bit overwhelmed by this overambundancy of libraries. Writing tests is supposed to be easy.2
-
I'm currently developing a Node.js tool. Now I want to write some unit tests, but I never wrote unit tests for a node app before and I don't know which framework I should use. Do any of you have any experience with the available unit testing frameworks? In the past I only used Karma and Jasmine for Angular unit testing.2
-
I swear I touched some weird and complex programming shit in over a decade of programming.
I interfaced myself through C# to C++ Firmware, I wrote Rfid antennas calibration and reading software with a crappy framework called OctaneSDK (seems easy until you have to know how radio signal math and ins and outs work to configure antennas for good performance), I wrote full blown, full stack enterprise web portals and applications.with most weird ass dbs since the era of JDBC, ODBC up to managed data access and entity framework, cloud documental databases and everything.
Please, please, please, PLEASE I BEG YOU, anyone, I don't even have the enough life force to pour into this, explain me why the hell Jest is still a thing in javascript testing.
I read on the site:
"Jest is a delightful JavaScript Testing Framework with a focus on simplicity."
Using jest doesn't feel any delightful and I can't see any spark of focus and simplicity in it.
I tried to configure it in an angular project and it's a clustefuck of your worst nightmares put togheter.
The amount of errors and problems and configurations I had to put up felt like setting up a clunky version of a rube goldberg's machine.
I had to uninstall karma/jasmine, creating config files floating around, configure project files and tell trough them to jest that he has to do path transformations because he can't read his own test files by itself and can't even read file dependencies and now it has a ton of errors importing dependencies.
Sure, it's focused on simplicity.
Moreover, the test are utter trash.
Hey launch this method and verify it's been launched 1 time.
Hey check if the page title is "x"
God, I hate js with passion since years, but every shit for js I put my hands on I always hope it will rehab its reputation to me, instead every fucking time it's worse than before. -
!rant
Finally managed to implement a proper E2E testing solution for our app with Protractor and Jasmine. Some basic tests (login and dashboard) are already working.
I'm just so happy to automate everything, going to cut down our manual testing time from 2h to about 20 to 30min if I'm estimating this correctly.
That's all. Just wanted to say I'm very happy with the results 😊5 -
I really don't know what to do when I can't get the help that we need.
We use the initial version of Jasmine for unit testing and AngularJS (not 2, 3, 4+, but 1), so it's hard to find any good examples online to create my tests. My coworkers help, but since testing isn't something we do at all (or at least very often), they are unsure on how to help me.
I don't know what to do. I feel very unproductive and not valuable to the company at this time.2 -
Skipping jasmine tests- especially ones on partials (not the controller). Seriously, QA has automated test suites to test UI functionality. If it takes 30 mins to write the code and 3 hours to write the tests... it may just not be worth the effort when there already is automated testing.
Ugh I hate skipping them but you know how to test the UI? Use the UI. -
So we just started being taught javascript. God, this syntax is a nightmare! The jump from ruby has not been a pleasant one, but picking up Jasmine at the same time seems to be helping a little. I can learn this in a week, right?1
-
Trying to wrap my head around writing unit test cases using Karma/Jasmine. Seriously, writing test cases for a specific directive is a bit tricky in angularJS 😑
-
Junior angular dev, looking for some fun projects to throw on my github. I haven't done any coding for my public github since I started working full time, so it looks like I'm MIA! Want to show off my newly gained skills :)
Anything html/css/boostrap/js/jquery/angular/jasmine/karma/node I'm down for, or if you've got any fun projects related to web development (backend, DB, etc) that's an unfamiliar language I'd probably take a shot at that too!
I built a portfolio before and deployed it to digital ocean and assigned it to my own google purchased .com, but that's the most "impressive" thing I've done so far.1 -
What stack are you using to test your angular app and why?
We’re using Karma + Jasmine for writing unit tests, because it’s the default, and run them on GitLab CI in a Docker container. For UI testing we don’t use the default Protractor but Selenium, because we haven’t found a way to run Protractor tests with a dedicated webserver.1 -
Jasmine Lopez specializes in recovering stolen cryptocurrencies, especially ETH/USDT. She has built a strong reputation for helping victims reclaim their lost funds. A personal example highlights her effectiveness: I lost $111,000 and, thanks to her prompt action, I recovered it all within 24 hours. Her dedication and skills eased my financial stress. She is always ready to assist others with similar issues. For help, she can be reached by email at Recoveryfundprovider@gmail. com or contact her through WhatsApp at +44 736 644 5035. Her Insta is recoveryfundprovider.3
-
Jasmine Lopez is an expert in retrieving stolen cryptocurrency, including Ethereum and USDT. Her effective methods make her a reliable ally for theft victims. One client, who lost £908,000, sought her assistance, and Jasmine managed to recover the full amount within a day, bringing immense relief to the client. Jasmine is dedicated to helping others in similar situations and is available to offer support. For help with recovering lost funds, you can contact her via email at Recoveryfundprovider@gmail. com or on WhatsApp at +44 736 644 5035.1
-
In early 2024, I became a victim of a fraudulent online trading platform that drained my account of GBP 50,000. As the Marketing Director at Greenfield Marketing Agency in Manchester, I thought I had a strong understanding of online risks, particularly when it came to financial transactions and digital security. However, this scam caught me completely off guard. Despite my expertise, I found myself in a situation I could never have anticipated, and I was devastated. I didn't know where to turn or how to recover the lost funds, and the emotional toll was overwhelming. After researching different recovery options, I came across Asset Rescue Specialist. From the very first interaction, their team demonstrated professionalism and empathy. They took the time to explain the entire recovery process in detail, ensuring I understood each step before moving forward. It was clear that they were committed to helping clients like me navigate this difficult situation with transparency and care. One of the most reassuring aspects of working with Asset Rescue Specialist was their constant communication. They provided regular updates on the progress of the case, which helped ease my anxiety. I never felt left in the dark, and I could always reach out with questions or concerns. Their team was highly responsive and patient, taking the time to address any doubts I had. Remarkably, within just 14 days, Asset Rescue Specialist was able to recover GBP 45,000 of my lost funds. While I didn't get the full amount back, the recovery of such a significant portion of my money was a huge relief. The speed and efficiency with which they handled my case were impressive, and it exceeded my expectations. The entire process was transparent from start to finish, and I felt like I was in capable hands the entire time. Looking back, I am incredibly grateful for the dedication and expertise of the Wizard Web Recovery team. Their compassionate approach made a challenging and emotionally taxing situation much more manageable. I would wholeheartedly recommend their services to anyone who has fallen victim to online scams or fraud. If you’re facing a similar situation, don’t hesitate to reach out to them they truly deliver results and provide the support you need when you need it most. Send a DM via:Contact Email; assetrescuespecialist (AT) qualityservice (DOT) com or Whats-app:+ 1 9 0 3 5 5 9 1 7 3 3.
Regards,
Jasmine Kelly,
8 -
Park View City Lahore:
Park View City Lahore is a distinguished residential community developed by Vision Group, strategically located near Multan Road in Lahore. Initially spanning 765 kanals, the society has expanded to accommodate a growing number of residents and investors.
Location and Accessibility
Situated adjacent to the Lahore-Multan National Highway, Park View City offers residents seamless connectivity to key areas of Lahore. This prime location ensures easy access to the city's major business districts and residential zones, making it a convenient choice for homeowners and investors alike.
Residential and Commercial Offerings
The society is meticulously divided into various blocks, each offering a range of residential and commercial plots:
Residential Plots: Available in sizes of 3.5, 5, 10, and 20 marlas.
Commercial Plots: Offered in 5 and 10 marlas
Notable blocks within the society include Crystal Block, Diamond Block, Executive Block, Gold Block, Golf Estate, Jade Block, Jasmine Block, Orchard Block, Overseas Block, Pearl Block, Rose Block, Sapphire Block, Topaz Block, and Tulip Block.
Legal Status and NOC
Park View City Lahore holds a No Objection Certificate (NOC) from the Lahore Development Authority (LDA), affirming its legal status and compliance with regulatory standards. This approval enhances the credibility of the project and assures investors of its legitimacy. Amenities and Facilities
The society is designed to provide a modern and comfortable lifestyle, featuring
24/7 Security: Ensuring the safety of residents with continuous surveillance.
Educational Institutions: Proximity to reputable schools and colleges.
Healthcare Facilities: Access to quality medical centers and hospitals.
Sports Complexes: Facilities for various sports and recreational activities.
Green Spaces: Parks and landscaped areas promoting a healthy environment.
Shopping and Dining: Commercial areas with a variety of retail and culinary options.
Payment Plans
Park View City Lahore offers flexible payment plans to cater to diverse financial capacities. For instance, the Royal Block features a 3.5-year installment plan, making property acquisition more accessible to potential buyers.
Market Overview
As of late 2024, the market for 5 marla plots in Park View City Lahore varies based on location and development status within each block. Prices are influenced by factors such as proximity to amenities and overall infrastructure development.
Investment Potential
With its strategic location, comprehensive amenities, and legal approvals, Park View City Lahore presents a promising opportunity for both investors and homebuyers. The ongoing development and expansion of the society indicate potential for property value appreciation in the future.
In summary, Park View City Lahore stands out as a well-planned residential community offering a blend of comfort, convenience, and investment potential in one of Lahore's prime locations.
3


