Skip to content

Commit

Permalink
fix(package.json): add dist to files so that it's available via unpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
basvanmeurs committed Apr 22, 2020
1 parent d7221d2 commit 6b651ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
},
"files": [
"lib/**",
"dist/**",
"src/**"
],
"homepage": "https://github.com/Planning-nl/flexbox.js#readme",
Expand Down
24 changes: 9 additions & 15 deletions tests/test.autosize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,41 +84,35 @@ describe("layout", () => {
});
});

describe('stretching an autosized container', () => {
describe("stretching an autosized container", () => {
flexTestUtils.addMochaTestForAnnotatedStructure("column: autosize w,h", {
flex: { enabled: true, direction: "column" },
w: 500,
h: 100,
r: [0, 0, 500, 100],
children: [
{
flex: {enabled: true, direction: "column"},
flex: { enabled: true, direction: "column" },
r: [0, 0, 500, 100],
children: [
{w: 100, h: 100, r: [0, 0, 100, 100]}
]
}
children: [{ w: 100, h: 100, r: [0, 0, 100, 100] }],
},
],
});
});


describe('growing an autosized container', () => {
describe("growing an autosized container", () => {
flexTestUtils.addMochaTestForAnnotatedStructure("column: autosize w,h", {
flex: { enabled: true, direction: "row" },
w: 500,
r: [0, 0, 500, 100],
children: [
{
flex: {enabled: true},
flexItem: {grow: 1},
flex: { enabled: true },
flexItem: { grow: 1 },
r: [0, 0, 500, 100],
children: [
{w: 100, h: 100, r: [0, 0, 100, 100]}
]
}
children: [{ w: 100, h: 100, r: [0, 0, 100, 100] }],
},
],
});
});

});

0 comments on commit 6b651ee

Please sign in to comment.