Skip to content

Commit

Permalink
test: modify test
Browse files Browse the repository at this point in the history
  • Loading branch information
answershuto committed Aug 29, 2022
1 parent 9a41517 commit bbd541a
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion __tests__/build-cases/with-rax-pha.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ buildFixture(example, true);

describe('should build manifest.json: ', () => {
test('manifest.json content', async () => {

console.log(123)
const manifestJSON = fs.readJSONSync(path.join(process.cwd(), 'examples', example, 'build/web/manifest.json'));
console.log('manifestJSON=', manifestJSON)
expect(manifestJSON).toEqual({
Expand Down Expand Up @@ -36,7 +38,30 @@ describe('should build manifest.json: ', () => {
custom: true,
list: ['home', 'about-single'],
source: '/components/CustomTabBar/index',
html: "\n <!DOCTYPE html>\n <html>\n <head>\n <meta charset=\"utf-8\" />\n \n <meta name=\"viewport\" content=\"width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,viewport-fit=cover\" />\n <meta name=\"release-info\" content=\"version=12,app-id=123\" />\n<meta name=\"aplus-version\" content=\"aplus_wap\">\n\n <title>PHA Demo</title>\n \n <link rel=\"stylesheet\" href=\"/customtabbar.css\" />\n\n </head>\n <body >\n \n <div id=\"root\"></div>\n <script class=\"__combo_script__\" crossorigin=\"anonymous\" src=\"https://g.alicdn.com/??code/lib/rax/1.2.2/rax.min.umd.js,mtb/lib-promise/3.1.3/polyfillB.js,ali-lib/appear-polyfill/0.1.2/index.js,mtb/lib-windvane/3.0.7/windvane.js,mtb/lib-mtop/2.6.1/mtop.js,mtb/lib-login/2.2.0/login.js,jstracker/sdk-assests/5.1.25/index.js,ali-lib/aplus/0.2.0/index.js\"></script>\n<script src=\"https://g.alicdn.com/mtb/lib-promise/3.1.3/polyfillB.js\" crossorigin=\"anonymous\" ></script>\n\n \n <script crossorigin=\"anonymous\" type=\"application/javascript\" src=\"/customtabbar.js\"></script>\n\n </body>\n </html>\n",
html: '\n' +
' <!DOCTYPE html>\n' +
' <html>\n' +
' <head>\n' +
' <meta charset="utf-8" />\n' +
' \n' +
' <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,viewport-fit=cover" />\n' +
' <meta name="release-info" content="version=12,app-id=123" />\n' +
'\n' +
' <title>PHA Demo</title>\n' +
' \n' +
' <link rel="stylesheet" href="/customtabbar.css" />\n' +
'\n' +
' </head>\n' +
' <body >\n' +
' \n' +
' <div id="root"></div>\n' +
' <script src="https://g.alicdn.com/mtb/lib-promise/3.1.3/polyfillB.js" crossorigin="anonymous" ></script>\n' +
'\n' +
' \n' +
' <script crossorigin="anonymous" type="application/javascript" src="/customtabbar.js"></script>\n' +
'\n' +
' </body>\n' +
' </html>\n'
},
title: 'PHA Demo',
});
Expand Down

0 comments on commit bbd541a

Please sign in to comment.