Just needed to clean up a couple of minor things

This commit is contained in:
David Back 2023-04-17 17:04:28 -04:00
parent 02dc99b2ff
commit 6e02e4347d
3 changed files with 4 additions and 8 deletions

View file

@ -51,15 +51,15 @@ const endpoints = {
url: "/parts/api/v1/parts/part-from-capability-answer",
method: "POST",
},
GetWipers: {
GetWipers: {
url: '/parts/api/v1/parts/wipers',
method: 'GET'
},
GetRainDefense: {
GetRainDefense: {
url: '/parts/api/v1/parts/rain-defense',
method: 'GET'
},
GetSupportingItems: {
GetSupportingItems: {
url: '/parts/api/v1/parts/supporting-items',
method: 'POST'
},

View file

@ -6,7 +6,7 @@ describe("site sub header", () => {
const subHeaderText = "let's fix your glass";
const mockMixin = {
methods: {
getCmsContent: jest.fn().mockImplementation((widgetName, text)=> {
getCmsContent: jest.fn().mockImplementation(()=> {
return subHeaderText;
})
}
@ -21,7 +21,6 @@ describe("site sub header", () => {
mixins: [mockMixin]
});
//wrapper.getCmsContent = jest.fn();
const actual = wrapper.find("span");
expect(actual.html()).toContain(subHeaderText);
});

View file

@ -3,8 +3,6 @@ process.env.VUE_APP_CURRENT_ENVIRONMENT = "Localhost";
process.env.VUE_APP_GOOGLE_PLACES_API_KEY =
"AIzaSyCuLhQcDdZTTb4JzpUFms1OCch2dk5lHF0";
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
// GA & GTM
// NOTE: Using the old ISS site GTM Cotnainer ID for now, will create a new one soon.
process.env.VUE_APP_GOOGLE_TAG_MANAGER_SCRIPT_BODY = "(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-KKNWZ3');";
@ -29,6 +27,5 @@ module.exports = {
},
configureWebpack: {
devtool: 'source-map',
plugins: [new MiniCssExtractPlugin()]
},
};