Skip to content

Commit

Permalink
port integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerbarker committed Jan 4, 2025
1 parent b83a6bd commit 21d1690
Show file tree
Hide file tree
Showing 5 changed files with 1,326 additions and 969 deletions.
7 changes: 4 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"linter": {
"enabled": true,
"rules": {
"style": {
"useConst": "off"
},
"complexity": {
"noUselessThisAlias": "off",
"noForEach": "off"
Expand All @@ -17,7 +20,5 @@
"organizeImports": {
"enabled": true
},
"files": {
"ignore": ["./packages/**/*.test.js"]
}
"files": {}
}
4 changes: 0 additions & 4 deletions packages/phoenix_live_view_ts/src/live_socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,6 @@ export let isUsedInput = (el) => DOM.isUsedInput(el)
export default class LiveSocket {
constructor(url, phxSocket, opts = {}){
this.unloaded = false
console.log("phxSocket!!", phxSocket.constructor.name)
console.log("prototype!!", phxSocket.prototype.name)
console.log("prototypeConnect!!", phxSocket.prototype.connect)
console.log("typeoff!!", typeof phxSocket)
if(!phxSocket || phxSocket.constructor.name === "Object"){
throw new Error(`
a phoenix Socket must be provided as the second argument to the LiveSocket constructor. For example:
Expand Down
Loading

0 comments on commit 21d1690

Please sign in to comment.