Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 19 2020 20:09
    @krisb1220 banned @Gastony
  • May 14 2020 22:38
    @bjorno43 banned @minitechtips_twitter
  • May 14 2020 22:37
    @bjorno43 banned @real-action
  • Feb 01 2020 00:26
    @bjorno43 banned @Ndoua
  • Jan 07 2020 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:33
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • May 10 2019 09:13
    @bjorno43 banned @zhaokunhaoa
  • Apr 25 2019 17:12
    @mstellaluna banned @cmal
  • Apr 01 2019 18:11
    thecodingaviator labeled #31179
  • Apr 01 2019 18:11
    thecodingaviator labeled #31179
  • Apr 01 2019 18:09
    thecodingaviator commented #31179
  • Apr 01 2019 18:09
    thecodingaviator labeled #31182
  • Apr 01 2019 18:09
    thecodingaviator labeled #31182
  • Apr 01 2019 18:07
    thecodingaviator commented #31182
  • Apr 01 2019 18:07
    thecodingaviator labeled #31190
  • Apr 01 2019 18:07
    thecodingaviator labeled #31190
  • Apr 01 2019 18:07
    thecodingaviator commented #31190
  • Apr 01 2019 18:05
    thecodingaviator commented #31157
  • Apr 01 2019 18:04

    thecodingaviator on master

    remove A (#31157) (compare)

Riz Syed
@RS357
the terminal still outputs the same error:


 FAIL  ./main.test.js
  ✕ the modal appears when the pringle passes the face (108ms)

  ● the modal appears when the pringle passes the face

    expect(received).toBe(expected) // Object.is equality

    Expected: "modal show-modal"
    Received: "modal"

      165 |     draw()
      166 |     console.log(modal.className)
    > 167 |     expect(modal.className).toBe('modal show-modal')
          |                             ^
      168 | })

      at Object.toBe (main.test.js:167:29)

  console.log main.test.js:166
    modal

  console.log main.test.js:93
    first promise reached[object Image]

Test Suites: 1 failed, 1 total
Tests:       1 failed, 1 total
Snapshots:   0 total
Time:        2.057s
Ran all test suites.
npm ERR! Test failed.  See above for more details.
@cmccormack I added a console.log('modal toggled') into the toggleModal() function and it didn't output to the terminal, meaning toggleModal() is not even called
Christopher McCormack
@cmccormack
@RizwanSyed357 :thumbsup:
I'm curious, why are all your functions in jest fn's? Why not import the functions from your source?
Riz Syed
@RS357
@cmccormack you can't, you have to mock them for the test environment
i dont think you can import the functions from main.js
Jason Luboff
@JLuboff
You can import functions... I do it
Christopher McCormack
@cmccormack
yeah I do it all the time
this is frontend only?
Tom
@moT01
:poop:
Christopher McCormack
@cmccormack
@moT01 sup brown triangle with face
Tom
@moT01
nothing
sup with you
Christopher McCormack
@cmccormack
trying to figure out tricks to using textFSM
Tom
@moT01
any luck?
Christopher McCormack
@cmccormack
some
figured out how to loop over some data without creating a new row
which is good enough for now :)
Tom
@moT01
want to figure out how to write some tests for my PR
I'm struggling
Christopher McCormack
@cmccormack
@moT01is that all done in jest?
Tom
@moT01
I believe so
there's some front end and back end tests - I took a look at both areas - coulnd't come up up with anything
shenerd140
@shenerd140
Hey guys, please is it possible for a script to execute itself when pasted in the google chrome devtools console tap without pressing enter? From what I know, to be able to execute a script in the console tap, you need to press enter
Kaz Baig
@kbaig
not sure if it would make much sense to make it possible
what's your use case?
Tom
@moT01
I would guess, you need to press enter or something to execute
Jason Luboff
@JLuboff
Sounds like a scam...
Kaz Baig
@kbaig
sounds like tricking people to install an in-browser miner lol
Brad
@bradtaniguchi
who is us is it you, me, someone else XD
shenerd140
@shenerd140
Is not. I would recognize a scam if I see one. The code am trying to write is kind of like a hack to trick the platform to win BTC. It is a BTC betting platform
@kbaig that's not the case
Frank
@DeJaFUU
I've got a better deal, give me 10 btc I'll sent you 20 back, guaranteed!
Pagnito
@Pagnito
wow windows your phone app doesnt give the option to use background sync or not
i dont want background sync eating up my battery
shenerd140
@shenerd140
@JLuboff Why do you have to be that quick to judge. At least try and learn more about what am trying to say before judging
Pagnito
@Pagnito
i always wanted something like this on my old laptop and now i still wont have it. wow
lol
shenerd140
@shenerd140
@DeJaFUU This is no joke so please stop it
Jason Luboff
@JLuboff
@shenerd140 Becuase you're advertising that you'll be able to earn (at current BTC rate) $45k - $63k a week. As the saying goes... if its too good to be true...
shenerd140
@shenerd140
@JLuboff OMG. Am not advertising anything and you are getting everything wrong
Jason Luboff
@JLuboff
Is a little project that would make us 5BTC and 7BTC every week for real]
That is literally what you wrote
Kaz Baig
@kbaig
Their profile pic is also from unsplash
You'd just tell us the specifics rather than being defensive if it wasn't a scam
Jason Luboff
@JLuboff
@kbaig Damn brah...pulling out the reverse image search or what?
Kaz Baig
@kbaig
ye
shenerd140
@shenerd140
@JLuboff What am trying to mean by that is, the code that we will be writing to trick the platform will help us make 5BTC or 7BTC per week
Kaz Baig
@kbaig
trick