This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "_comment": "Test 3: US project with zip code - Regression test - Expected: 201 Created", | |
| "_note": "This test verifies US projects still work correctly. Replace USER_EMAIL_HERE and panel.id with valid values.", | |
| "project": { | |
| "name": "Test US Project - Regression Test", | |
| "street": "123 Main St", | |
| "city": "San Francisco", | |
| "state": "CA", | |
| "zip": "94107", | |
| "country": "US", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "_comment": "Test 2: Non-US project with INCORRECT field name (non_us_postal_code) - Expected: 422 Unprocessable Content", | |
| "_note": "This test verifies that the OLD typo field name is rejected. Replace USER_EMAIL_HERE and panel.id with valid values.", | |
| "project": { | |
| "name": "Test Canadian Project - Incorrect Field (Should Fail)", | |
| "street": "100 Queen Street West", | |
| "city": "Toronto", | |
| "state": "ON", | |
| "country": "CA", | |
| "non_us_postal_code": "M5H 2N2", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "_comment": "Test 1: Non-US project with CORRECT field name (non_usa_postal_code) - Expected: 201 Created", | |
| "_note": "Replace USER_EMAIL_HERE with a valid user email that has granted partner access. Replace panel.id with a valid panel ID from your environment.", | |
| "project": { | |
| "name": "Test Canadian Project - Correct Field", | |
| "street": "100 Queen Street West", | |
| "city": "Toronto", | |
| "state": "ON", | |
| "country": "CA", | |
| "non_usa_postal_code": "M5H 2N2", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "parameters": { | |
| "asce": "7-16", | |
| "zipCode": "91320", | |
| "windSpeed": 94, | |
| "groundSnowLoad": 1, | |
| "windExposure": "B", | |
| "sds": 1.25, | |
| "siteElevation": 699, | |
| "panelLengthMm": 1130, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "parameters": { | |
| "asce": "7-16", | |
| "zipCode": "91320", | |
| "windSpeed": 94, | |
| "groundSnowLoad": 1, | |
| "windExposure": "B", | |
| "sds": 1.25, | |
| "siteElevation": 699, | |
| "panelLengthMm": 1130, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "parameters": { | |
| "asce": "7-16", | |
| "zipCode": "91320", | |
| "windSpeed": 94, | |
| "groundSnowLoad": 1, | |
| "windExposure": "B", | |
| "sds": 1.25, | |
| "siteElevation": 699, | |
| "panelLengthMm": 1130, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "parameters": { | |
| "asce": "7-16", | |
| "zipCode": "91320", | |
| "windSpeed": 94, | |
| "groundSnowLoad": 1, | |
| "windExposure": "B", | |
| "sds": 1.25, | |
| "siteElevation": 699, | |
| "panelLengthMm": 1130, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "project": { | |
| "name": "ASCE 7-16 Test - Complete with Roof Shape", | |
| "street": "123 Main St", | |
| "city": "San Francisco", | |
| "state": "CA", | |
| "zip": "94107", | |
| "country": "US", | |
| "asce": "7-16", | |
| "riskCategory": "II", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'test_helper' | |
| class FoosControllerTest < ActionDispatch::IntegrationTest | |
| setup do | |
| @foo = foos(:one) | |
| end | |
| test "should get index" do | |
| get foos_url | |
| assert_response :success |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import uuid from "uuid/v4"; | |
| import { combineReducers } from "redux"; | |
| export const types = { | |
| CREATE: "CHARACTERS_CREATE", | |
| UPDATE: "CHARACTERS_UPDATE", | |
| DELETE: "CHARACTERS_DELETE" | |
| }; | |
| const byId = (state = {}, action) => { |
NewerOlder