<commit_before>"use strict";

describe("card category", function() {

    describe("good category", function() {

        it("should retrieve the cards from the good category", function() {
            // Setup
            // spyOn(Meteor, "call").and.callThrough();
            spyOn(Cards, "find");
            spyOn(Session, "get").and.returnValues("testAuthor", "testRoom");

            // Execute
            Template.room.__helpers[" goodCards"]();

            // Verify
            expect(Session.get).toHaveBeenCalledWith("author");
            expect(Session.get).toHaveBeenCalledWith("roomNumber");
             expect(Cards.find).toHaveBeenCalledWith({"roomCode": "testRoom",
                "category": "good",
                $or: [{"reveal": true}, {"author": "testAuthor"}]});

        });

    });

    describe("bad category", function() {

        it("should retrieve the cards from the bad category", function() {
            // Setup
            // spyOn(Meteor, "call").and.callThrough();
            spyOn(Cards, "find");
            spyOn(Session, "get").and.returnValues("testAuthor", "testRoom");

            // Execute<commit_msg>removed unneeded lines<commit_after>"use strict";

describe("card category", function() {

    describe("good category", function() {

        it("should retrieve the cards from the good category", function() {
            // Setup
            spyOn(Cards, "find");
            spyOn(Session, "get").and.returnValues("testAuthor", "testRoom");

            // Execute
            Template.room.__helpers[" goodCards"]();

            // Verify
            expect(Session.get).toHaveBeenCalledWith("author");
            expect(Session.get).toHaveBeenCalledWith("roomNumber");
             expect(Cards.find).toHaveBeenCalledWith({"roomCode": "testRoom",
                "category": "good",
                $or: [{"reveal": true}, {"author": "testAuthor"}]});

        });

    });

    describe("bad category", function() {

        it("should retrieve the cards from the bad category", function() {
            // Setup
            spyOn(Cards, "find");
            spyOn(Session, "get").and.returnValues("testAuthor", "testRoom");

            // Execute
{'fraction_non_alphanumeric': 0.15891647855530475, 'fraction_numerical': 0.0, 'mean_word_length': 2.206946454413893, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6610200', 'n_tokens_mistral': 599, 'n_tokens_neox': 588, 'n_words': 119}