Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider 952671fc rédigé par Malo Grall's avatar Malo Grall
Parcourir les fichiers

Restructured utils

parent f6b10c8c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Pipeline #56297 réussi
import React from 'react'
import Home from './Home/Home'
import Client from './utils/Client'
import Client from './utils/Client/Client'
function App () {
const client = new Client()
......
import React from 'react'
import { render, screen } from '@testing-library/react'
import Home from './Home'
import Client from '../utils/Client'
import Client from '../utils/Client/Client'
// Create mock for Client
jest.mock('../utils/Client')
jest.mock('../utils/Client/Client')
test('renders learn react link', () => {
const client = new Client()
......
......@@ -2,7 +2,7 @@ import React from 'react'
import { Container } from 'react-bootstrap'
import { GameState } from '../utils/types'
import GameLobby from '../components/GameLobby'
import IClient from '../utils/IClient'
import IClient from '../utils/Client/IClient'
interface Props {
client: IClient
......
import React, { useState } from 'react'
import { Badge, Button, Card, Form } from 'react-bootstrap'
import IClient from '../utils/IClient'
import IClient from '../utils/Client/IClient'
import { GameState } from '../utils/types'
interface Props {
......
Fichier déplacé
import IClient from './IClient'
import { Action, Card, GameState } from './types'
import { Action, Card, GameState } from '../types'
export default class Client implements IClient {
refreshGameState (): [GameState, number] {
......
import { Action, Card, GameState, Resource } from './types'
import { Action, Card, GameState, Resource } from '../types'
export default interface IClient {
/**
......
import { Action, Card, GameState, Resource } from './types'
import { Action, Card, GameState, Resource } from '../types'
export default interface IClientMiddleware {
joinGame(userName: string): void
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter