This file contains 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 'net/http' | |
require 'json' | |
class EasyBrokerClient | |
BASE_URL = 'https://api.stagingeb.com/v1' | |
API_KEY = 'l7u502p8v46ba3ppgvj5y2aad50lb9' | |
def initialize | |
@headers = { 'X-Authorization' => API_KEY } | |
end |
This file contains 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 {sumNumbers} from "../core/string-calculator"; | |
describe('StringCalculator', () => { | |
it('can handle null and empty strings', () => { | |
expect(sumNumbers(null)).toBe(0); | |
expect(sumNumbers('')).toBe(0); | |
}); | |
it('can handle one number', () => { | |
expect(sumNumbers('18')).toBe(18); |
This file contains 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
# Don't forget to add output: "standalone" on next.config | |
FROM node:22.6.0-alpine3.19 AS base | |
# Install system dependencies and pnpm dependencies | |
FROM base AS build-deps | |
RUN apk add --no-cache libc6-compat | |
ENV PNPM_HOME="/pnpm" | |
ENV PATH="$PNPM_HOME:$PATH" |