mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
updates
This commit is contained in:
@@ -18,7 +18,7 @@ export function useAuthoritativeUpdates({
|
|||||||
[clientDataUpdatedAt, serverUpdatedAt]
|
[clientDataUpdatedAt, serverUpdatedAt]
|
||||||
);
|
);
|
||||||
|
|
||||||
console.log("client is authoritative", clientIsAuthoritative);
|
// console.log("client is authoritative", clientIsAuthoritative);
|
||||||
const textUpdate = useCallback((t: string, updateMonaco: boolean = false) => {
|
const textUpdate = useCallback((t: string, updateMonaco: boolean = false) => {
|
||||||
setText(t);
|
setText(t);
|
||||||
setClientDataUpdatedAt(Date.now());
|
setClientDataUpdatedAt(Date.now());
|
||||||
|
|||||||
@@ -109,4 +109,29 @@ Which events are triggered when the user clicks on an input field?
|
|||||||
essay`;
|
essay`;
|
||||||
expect(questionMarkdown).toContain(expectedMarkdown);
|
expect(questionMarkdown).toContain(expectedMarkdown);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// it("Can parse short answer with auto graded answers", () => {
|
||||||
|
// const rawMarkdownQuiz = `
|
||||||
|
// Name: Test Quiz
|
||||||
|
// ShuffleAnswers: true
|
||||||
|
// OneQuestionAtATime: false
|
||||||
|
// DueAt: 08/21/2023 23:59:00
|
||||||
|
// LockAt: 08/21/2023 23:59:00
|
||||||
|
// AssignmentGroup: Assignments
|
||||||
|
// AllowedAttempts: -1
|
||||||
|
// Description: this is the
|
||||||
|
// multi line
|
||||||
|
// description
|
||||||
|
// ---
|
||||||
|
// Which events are triggered when the user clicks on an input field?
|
||||||
|
// *a) test
|
||||||
|
// short_answer=
|
||||||
|
// `;
|
||||||
|
|
||||||
|
// const quiz = quizMarkdownUtils.parseMarkdown(rawMarkdownQuiz);
|
||||||
|
// const firstQuestion = quiz.questions[0];
|
||||||
|
|
||||||
|
|
||||||
|
// expect(firstQuestion.questionType).toBe(QuestionType.SHORT_ANSWER_WITH_ANSWERS)
|
||||||
|
// });
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
"use client";
|
"use client";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import superjson from "superjson";
|
import superjson from "superjson";
|
||||||
import { httpBatchLink, httpLink } from "@trpc/client";
|
import { httpBatchLink } from "@trpc/client";
|
||||||
import { trpc } from "./trpcClient";
|
import { trpc } from "./trpcClient";
|
||||||
import { getQueryClient } from "@/app/providersQueryClientUtils";
|
import { getQueryClient } from "@/app/providersQueryClientUtils";
|
||||||
import { isServer } from "@tanstack/react-query";
|
import { isServer } from "@tanstack/react-query";
|
||||||
|
|||||||
Reference in New Issue
Block a user