<commit_before>const _ = require('underscore');

describe('setup phase', function() {
    integration(function() {
        describe('setting up provinces', function() {
            beforeEach(function() {
                const deck = this.buildDeck('phoenix', [
                    'isawa-mori-seido',
                    'fertile-fields','fertile-fields','fertile-fields','fertile-fields','fertile-fields',
                    'otomo-courtier','otomo-courtier','otomo-courtier','otomo-courtier','otomo-courtier'
                ]);
                this.player1.selectDeck(deck);
                this.player2.selectDeck(deck);
                this.startGame();

                this.nextProvinceCard = () => {
                    return this.player1.player.provinceDeck.value()[0];
                };
            });

            it('should start with no cards in hand or on provinces', function() {
                const locations = [
                    'hand',
                    'provinceOne',
                    'provinceTwo',
                    'provinceThree',
                    'provinceFour',
                    'strongholdProvince'
                ];
                _.each(locations, loc => expect(this.player1.player[loc].value().length).toBe(0));
            });

            it('should present both players with a prompt to set up provinces', function() {
                expect(this.player1.currentPrompt().menuTitle).toBe('Select stronghold province');
                expect(this.player2.currentPrompt().menuTitle).toBe('Select stronghold province');
            });

            it('should not allow proceeding before all provinces have been set up', function() {
                let strongholdProvince = this.nextProvinceCard();
                strongholdProvince.selected = true;
                this.player1.clickPrompt('Done');
                expect(this.player1.currentPrompt().menuTitle).toBe('Select stronghold province');
            });

            it('should allow proceeding once all provinces have been set up', function() {
                let strongholdProvince = this.nextProvinceCard();
                strongholdProvince.selected = true;
                this.player1.clickPrompt('Done');
                expect(this.player1.currentPrompt().menuTitle).toBe('Waiting for opponent to finish selecting a stronghold province');
            });

            it('should not allow proceeding if two provinces are in one pile', function() {
                let strongholdProvince = this.nextProvinceCard();
                strongholdProvince.selected = true;
                this.player1.clickPrompt('Done');
                expect(this.player1.currentPrompt().menuTitle).toBe('Select stronghold province');
            });

            it('should place provinces face-down', function() {
                let strongholdProvince = this.nextProvinceCard();
                strongholdProvince.selected = true;
                this.player1.clickPrompt('Done');
                expect(strongholdProvince.facedown).toBe(true);
            });

        });

    });
});<commit_msg>Remove unneeded spec<commit_after>const _ = require('underscore');

describe('setup phase', function() {
    integration(function() {
        describe('setting up provinces', function() {
            beforeEach(function() {
                const deck = this.buildDeck('phoenix', [
                    'isawa-mori-seido',
                    'fertile-fields','fertile-fields','fertile-fields','fertile-fields','fertile-fields',
                    'otomo-courtier','otomo-courtier','otomo-courtier','otomo-courtier','otomo-courtier'
                ]);
                this.player1.selectDeck(deck);
                this.player2.selectDeck(deck);
                this.startGame();

                this.nextProvinceCard = () => {
                    return this.player1.player.provinceDeck.value()[0];
                };
            });

            it('should start with no cards in hand or on provinces', function() {
                const locations = [
                    'hand',
                    'provinceOne',
                    'provinceTwo',
                    'provinceThree',
                    'provinceFour',
                    'strongholdProvince'
                ];
                _.each(locations, loc => expect(this.player1.player[loc].value().length).toBe(0));
            });

            it('should present both players with a prompt to set up provinces', function() {
                expect(this.player1.currentPrompt().menuTitle).toBe('Select stronghold province');
                expect(this.player2.currentPrompt().menuTitle).toBe('Select stronghold province');
            });

            it('should not allow proceeding before all provinces have been set up', function() {
                let strongholdProvince = this.nextProvinceCard();
                strongholdProvince.selected = true;
                this.player1.clickPrompt('Done');
                expect(this.player1.currentPrompt().menuTitle).toBe('Select stronghold province');
            });

            it('should allow proceeding once all provinces have been set up', function() {
                let strongholdProvince = this.nextProvinceCard();
                strongholdProvince.selected = true;
                this.player1.clickPrompt('Done');
                expect(this.player1.currentPrompt().menuTitle).toBe('Waiting for opponent to finish selecting a stronghold province');
            });

            it('should place provinces face-down', function() {
                let strongholdProvince = this.nextProvinceCard();
                strongholdProvince.selected = true;
                this.player1.clickPrompt('Done');
                expect(strongholdProvince.facedown).toBe(true);
            });

        });

    });
});
{'fraction_non_alphanumeric': 0.1176671797502993, 'fraction_numerical': 0.004788780571233111, 'mean_word_length': 1.8047961630695444, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4610595', 'n_tokens_mistral': 1470, 'n_tokens_neox': 1359, 'n_words': 267}